mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +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 { getLink } from '@/queries/prisma';
|
||||
import { LinkPage } from './LinkPage';
|
||||
|
||||
export default async function ({ params }: { params: Promise<{ linkId: string }> }) {
|
||||
const { linkId } = await params;
|
||||
const link = await getLink(linkId);
|
||||
|
||||
if (!link || link?.deletedAt) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <LinkPage linkId={linkId} />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue