fp/packages/next/app/archive/[cuid]/page.tsx

20 lines
380 B
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
import StreamPage from '@/components/stream-page';
import { getStreamByCuid } from '@/lib/streams';
interface IPageParams {
params: {
cuid: string;
}
}
export default async function Page ({ params: { cuid } }: IPageParams) {
const stream = await getStreamByCuid(cuid);
return (
<>
<StreamPage stream={stream} />
</>
)
}