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

21 lines
444 B
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
2024-07-10 22:11:18 +00:00
import StreamPage from '@/app/components/stream-page';
import { getStreamByCuid } from '@/app/lib/streams';
2024-01-20 16:16:14 +00:00
interface IPageParams {
params: {
cuid: string;
}
}
export default async function Page ({ params: { cuid } }: IPageParams) {
const stream = await getStreamByCuid(cuid);
2024-05-27 22:20:58 +00:00
console.log(`getting stream by cuid. cuid=${cuid}`)
2024-01-20 16:16:14 +00:00
return (
<>
<StreamPage stream={stream} />
</>
)
}