mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 20:45:39 +01:00
parent
3072f02f1b
commit
912d2d544d
4 changed files with 19 additions and 1 deletions
|
|
@ -1,8 +1,14 @@
|
|||
import type { Metadata } from 'next';
|
||||
import { getPixel } from '@/queries/prisma';
|
||||
import { PixelPage } from './PixelPage';
|
||||
|
||||
export default async function ({ params }: { params: { pixelId: string } }) {
|
||||
const { pixelId } = await params;
|
||||
const pixel = await getPixel(pixelId);
|
||||
|
||||
if (!pixel || pixel?.deletedAt) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <PixelPage pixelId={pixelId} />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue