Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { useSession } from 'next-auth/react';
- import secure from '@util/secure'
- import Head from 'next/head'
- import FourOThree from '@components/FourOthree';
- import { useRouter } from 'next/router';
- import DashNav from '@components/DashNav';
- const Dashboard = () => {
- const router = useRouter();
- const { data: session, status } = useSession()
- const guildId = router.query.id
- switch (status) {
- case "loading":
- return <div>
- <Head>
- <title>{`Loading... | OneBump`}</title>
- </Head>
- </div>
- case "unauthenticated":
- return <FourOThree />
- case "authenticated":
- return <div className='h-screen'>
- <DashNav guild={guildId}></DashNav>
- </div>
- }
- }
- export default Dashboard
Advertisement
Add Comment
Please, Sign In to add comment