mirror of https://github.com/AlphaNecron/Void.git
16 lines
404 B
TypeScript
16 lines
404 B
TypeScript
import React from 'react';
|
|
import Layout from '../../components/Layout';
|
|
import { default as UploadPage } from '../../components/pages/Upload';
|
|
import useLogin from 'lib/hooks/useLogin';
|
|
|
|
export default function Upload() {
|
|
const { user, isLoading } = useLogin();
|
|
if (isLoading) return null;
|
|
return (
|
|
<Layout user={user} id={2}>
|
|
<UploadPage/>
|
|
</Layout>
|
|
);
|
|
}
|
|
|
|
Upload.title = 'Upload'; |