fp/packages/next/app/upload/page.tsx

28 lines
612 B
TypeScript
Raw Normal View History

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