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

26 lines
548 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';
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();
return (
<>
{!vtubers
? <aside className='notification is-danger'>Failed to fetch vtubers list. Please try again later.</aside>
: <UploadForm vtubers={vtubers}></UploadForm>
}
</>
)
}