You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
470 B
21 lines
470 B
import type { NextPage } from 'next';
|
|
import { Button } from '../../components/Button';
|
|
import Cookies from 'js-cookie';
|
|
import { useRouter } from 'next/router';
|
|
|
|
const FlexboxPage: NextPage = () => {
|
|
|
|
const router = useRouter();
|
|
return (
|
|
<>
|
|
<Button
|
|
title={'Logout'}
|
|
onClick={function (): void {
|
|
Cookies.remove("token");
|
|
router.push("/login");
|
|
}}/>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default FlexboxPage
|