nyx-dashboard/pages/controlpanel/index.js
qt coder 5eafb64efd Replaced old card with new one
Remade card to have a better feel
2021-06-24 16:48:39 +08:00

32 lines
1 KiB
JavaScript

import React from 'react'
import Card from '../../components/Card'
import Head from 'next/head'
import { useSession } from 'next-auth/client'
function Index() {
const [session, loading] = useSession()
return (
<>
{!session && <>
<h1>Seems like you&apos;re not logged in. Log in to get started!</h1>
</>
}
{session && <>
<Head>
<title>Cath Control Panel</title>
</Head>
<div>
<h1>Control Panel</h1>
<Card title='Commands' desc='Control your commands and their settings.' link='/controlpanel/commands'/>
<Card title='Commands' desc='Control your commands and their settings.' link='/controlpanel/commands'/>
<Card title='Commands' desc='Control your commands and their settings.' link='/controlpanel/commands'/>
</div>
</>
}
</>
)
}
export default Index