el.xwx.moe/components/Sidebar.tsx

14 lines
287 B
TypeScript
Raw Normal View History

2023-02-08 17:58:55 -06:00
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>
);
}