import { Box, Flex, Text, ButtonGroup, Button, Image, Link, } from "@chakra-ui/react"; import { useRouter } from "next/router"; import { signOut, useSession } from "next-auth/react"; type Props = { variant?: "static" | "fixed"; }; export default function Navbar({ variant = "fixed" }: Props) { const router = useRouter(); const { status } = useSession(); const MiddleSection = () => { const authenticatedLinks = ( <> Tableau de bord Profil Carte Statistiques ); return ( {status === "authenticated" && authenticatedLinks} ); }; const RightSection = () => { const authenticatedButtons = ( ); const unauthenticatedButtons = ( <> ); return ( {status === "authenticated" ? authenticatedButtons : unauthenticatedButtons} ); }; return ( ); }