Route handling + Added main layout.

This commit is contained in:
Daniel
2023-02-09 03:28:55 +03:30
parent 0bf1ec0d2a
commit 18387e2dde
11 changed files with 117 additions and 46 deletions
+13
View File
@@ -0,0 +1,13 @@
import { useSession } from "next-auth/react";
export default function Sidebar() {
const { data: session, status } = useSession();
const user = session?.user;
return (
<div className="fixed bg-gray-100 top-0 bottom-0 left-0 w-80">
<p>{user?.name}</p>
</div>
);
}