import React, { useEffect, useRef, useState } from "react" import { Link } from "react-router-dom" import Logo from "../../assets/pictures/Logo" const ArrowUpIcon = () => ↑ const Footer = () => { const [isVisible, setIsVisible] = useState(false) const footerRef = useRef(null) useEffect(() => { const observer = new IntersectionObserver( ([entry]) => { setIsVisible(entry.isIntersecting) }, { threshold: 0.3 } ) if (footerRef.current) { observer.observe(footerRef.current) } return () => { if (footerRef.current) { observer.unobserve(footerRef.current) } } }, []) const scrollToTop = () => { window.scrollTo({ top: 0, behavior: "smooth" }) } return ( ) } export default Footer