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	