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