This repository has been archived on 2024-06-14. You can view files and clone it, but cannot push or open issues or pull requests.
icynet-admin/pages/index.tsx

21 lines
563 B
TypeScript
Raw Normal View History

2022-08-29 18:09:28 +00:00
import type { NextPage } from 'next';
2022-09-14 17:31:38 +00:00
import Head from 'next/head';
2022-08-29 18:09:28 +00:00
import { Container } from '../components/common/Container/Container';
import { Header } from '../components/common/Header/Header';
import useUser from '../lib/hooks/useUser';
2022-08-29 14:53:03 +00:00
const Home: NextPage = () => {
2022-08-29 18:09:28 +00:00
const { user } = useUser({ redirectTo: '/login' });
2022-08-29 14:53:03 +00:00
return (
2022-08-29 18:09:28 +00:00
<>
2022-09-14 17:31:38 +00:00
<Head>
<title>Icy Network Administration</title>
</Head>
2022-08-29 18:09:28 +00:00
<Header user={user}></Header>
<Container>Welcome back, {user?.display_name}!</Container>
</>
);
};
export default Home;