1 parent
3072f02f1b
commit
912d2d544d
4 files changed
+19
-1
No files matched your search
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user