import React from 'react' import Link from 'next/link'; import { IVtuber, IStream } from '@futureporn/types'; import { notFound } from 'next/navigation'; import { getAllStreams } from '@/app/lib/streams'; import { StreamSummary } from '@/app/components/stream'; interface IStreamsListProps { vtubers: IVtuber[]; page: number; pageSize: number; } interface IStreamsListHeadingProps { slug: string; displayName: string; } export function StreamsListHeading({ slug, displayName }: IStreamsListHeadingProps): React.JSX.Element { return (

{displayName} Streams

) } export default async function StreamsList({ vtubers, page = 1, pageSize = 24 }: IStreamsListProps): Promise { if (!vtubers) return
vtubers is not defined. vtubers:{JSON.stringify(vtubers, null, 2)}
// const streams = await getStreamsForVtuber(vtubers[0].id); const streams = await getAllStreams(['missing', 'issue', 'good']); if (!streams) return notFound(); // @todo [ ] pagination // @todo [ ] sortability return ( <>

Stream Archive

); }