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

28 lines
624 B
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
2024-07-10 22:11:18 +00:00
import { getAllVtubers } from '@/app/lib/vtubers';
import UploadForm from '@/app/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';
2024-07-10 22:11:18 +00:00
import { getStreamByCuid } from '@/app/lib/streams';
2024-01-20 16:16:14 +00:00
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
</>
)
}