text: import { Link } from "react-router-dom";
  import { useLocation } from "react-router-dom";
  const Footer = () => {
    const location = useLocation();
    return (
      <>
        {location.pathname !== "/about" && (
          <footer>
            <p>Copyright &copy; 2021</p>
            <Link to="/about">About</Link>
          </footer>
        )}
      </>
    );
  };
  export default Footer;
  