21 lines
444 B
TypeScript
21 lines
444 B
TypeScript
|
|
||
|
import StreamPage from '@/app/components/stream-page';
|
||
|
import { getStreamByCuid } from '@/app/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} />
|
||
|
</>
|
||
|
)
|
||
|
}
|