17 lines
456 B
TypeScript
17 lines
456 B
TypeScript
import type { NextPage } from 'next';
|
|
import { Container } from '../components/common/Container/Container';
|
|
import { Header } from '../components/common/Header/Header';
|
|
import useUser from '../lib/hooks/useUser';
|
|
|
|
const Home: NextPage = () => {
|
|
const { user } = useUser({ redirectTo: '/login' });
|
|
return (
|
|
<>
|
|
<Header user={user}></Header>
|
|
<Container>Welcome back, {user?.display_name}!</Container>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Home;
|