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

21 lines
436 B
TypeScript

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);
console.log(`getting stream by cuid. cuid=${cuid}`)
return (
<>
<StreamPage stream={stream} />
</>
)
}