diff --git a/cshare-app/src/components/Footer.jsx b/cshare-app/src/components/Footer.jsx new file mode 100644 index 0000000..61458ea --- /dev/null +++ b/cshare-app/src/components/Footer.jsx @@ -0,0 +1,66 @@ +import { useNavigate } from 'react-router-dom'; + +export default function Footer() { + const navigate = useNavigate(); + + const go = (path) => { + navigate(path); + window.scrollTo({ top: 0, behavior: 'smooth' }); + }; + + return ( + + ); +}