28 lines
612 B
TypeScript
Raw Normal View History

2024-01-20 08:16:14 -08:00
import { getAllVtubers } from '@/lib/vtubers';
import UploadForm from '@/components/upload-form';
2024-03-28 23:28:02 -08:00
import { Suspense } from 'react';
2024-01-20 08:16:14 -08:00
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();
2024-03-28 23:28:02 -08:00
if (!vtubers) return (
<aside className='notification is-danger'>Failed to fetch vtubers list. Please try again later.</aside>
)
2024-01-20 08:16:14 -08:00
return (
<>
2024-03-28 23:28:02 -08:00
<Suspense>
<UploadForm vtubers={vtubers}></UploadForm>
</Suspense>
2024-01-20 08:16:14 -08:00
</>
)
}