28 lines
612 B
TypeScript
28 lines
612 B
TypeScript
|
|
import { getAllVtubers } from '@/lib/vtubers';
|
|
import UploadForm from '@/components/upload-form';
|
|
import { Suspense } from 'react';
|
|
|
|
import '@uppy/core/dist/style.min.css';
|
|
import '@uppy/dashboard/dist/style.min.css';
|
|
import { getStreamByCuid } from '@/lib/streams';
|
|
|
|
|
|
export default async function Page() {
|
|
|
|
const vtubers = await getAllVtubers();
|
|
|
|
if (!vtubers) return (
|
|
<aside className='notification is-danger'>Failed to fetch vtubers list. Please try again later.</aside>
|
|
)
|
|
return (
|
|
<>
|
|
|
|
<Suspense>
|
|
<UploadForm vtubers={vtubers}></UploadForm>
|
|
</Suspense>
|
|
|
|
|
|
</>
|
|
)
|
|
} |