2024-01-20 16:16:14 +00:00
|
|
|
import Pager from "@/components/pager";
|
|
|
|
import StreamsList from "@/components/streams-list";
|
2024-02-02 23:50:24 +00:00
|
|
|
import StreamsTable from '@/components/streams-table';
|
2024-01-20 16:16:14 +00:00
|
|
|
import { getAllStreams } from "@/lib/streams";
|
2024-02-02 23:50:24 +00:00
|
|
|
// import { getAllVtubers } from "@/lib/vtubers";
|
2024-01-20 16:16:14 +00:00
|
|
|
import { notFound } from "next/navigation";
|
|
|
|
|
|
|
|
export default async function Page() {
|
2024-02-02 23:50:24 +00:00
|
|
|
// const vtubers = await getAllVtubers();
|
|
|
|
const streams = await getAllStreams();
|
|
|
|
// const pageSize = 100;
|
|
|
|
// const page = 1;
|
|
|
|
|
|
|
|
// if (!vtubers) notFound();
|
2024-01-20 16:16:14 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="section">
|
|
|
|
{/* <pre>
|
|
|
|
<code>
|
|
|
|
{JSON.stringify(vtubers, null, 2)}
|
|
|
|
</code>
|
|
|
|
</pre> */}
|
|
|
|
|
2024-02-02 23:50:24 +00:00
|
|
|
<h1 className="title">Stream Archive</h1>
|
|
|
|
<StreamsTable streams={streams} />
|
|
|
|
{/* <StreamsList vtubers={vtubers} page={page} pageSize={pageSize} />
|
|
|
|
<Pager baseUrl="/streams" page={page} pageCount={vtubers.length/pageSize}/> */}
|
2024-01-20 16:16:14 +00:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|