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 {data: session, status} = useSession();
const MiddleSection = () => {
const authenticatedLinks = (
<>
Tableau de bord
Profile
Carte
>
);
return (
{status === 'authenticated' && authenticatedLinks}
);
};
const RightSection = () => {
const authenticatedButtons = (
);
const unauthenticatedButtons = (
<>
>
);
return (
{status === 'authenticated'
? authenticatedButtons
: unauthenticatedButtons
}
);
};
return (
);
}