import React from "react" import {Link, useLocation} from "react-router-dom" import useAuthUser from "../hooks/AuthUser" const Header = () => { const {authUser} = useAuthUser() const location = useLocation() return
Bermite
{authUser?.locations && authUser.locations.length > 0 && } {authUser ? {authUser.name} : Connexion {/*S'inscrire*/} }
} export default Header