diff --git a/src/pages/graphique.tsx b/src/pages/graphique.tsx index a5b650b..0678a54 100644 --- a/src/pages/graphique.tsx +++ b/src/pages/graphique.tsx @@ -8,19 +8,29 @@ import LineChart from "@/components/graph/LineChart"; import { Box } from "@chakra-ui/react"; import { websiteName } from "@/lib/constants"; import { useRef, useEffect } from "react"; +import { useSession } from "next-auth/react"; +import type { Session } from "@/models/auth/Session"; +import { Role } from "@prisma/client"; export default function Graphique() { + const { data: session, status } = useSession({ required: true }); + const { user } = session as unknown as Session; return ( <>