Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /* eslint-disable react-hooks/exhaustive-deps */
/* eslint-disable react-hooks/rules-of-hooks */
import { useRouter } from 'next/router'
import { signOut } from "next-auth/react";
export default function Home() {
// const { data, status } = useSession();
// const router = useRouter();
// if (status === "unauthenticated") {
// router.push("/login");
// }
// const logout = () => {
// signOut({ redirect: false })
// router.push("/login");
// }
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<label htmlFor='welcome'>Welcome</label>
<input id='welcome'/>
{/* <h2 style={{ textAlign: "center" }} className='font-bold underline'>Welcome {data?.user?.name}</h2>
<button style={{ float: "right" }} className='btn btn-warning' type="button" onClick={() => router.push('/about')}>About</button>
<button className="btn btn-primary" style={{ float: "right" }} onClick={() => logout()}>Logout</button> */}
</main>
)
}
|