import { Link, useLocation } from 'react-router-dom' import { useAuth } from '../context/AuthContext' export default function Footer() { const { pathname } = useLocation() const { user } = useAuth() const isLoggedIn = !!user function FooterLink({ to, children, className=''}) { return pathname === to ? ( {children} ) : ( {children} ) } return ( ) }