import React /*, { useEffect, useRef, useState }*/ from "react"; import { Box, Text, VStack, Link, HStack, // Image, Button, BoxProps } from "@chakra-ui/react"; import { Icon } from "@iconify/react"; // import BackToTopButton from "./BackToTopButton"; import { motion } from "framer-motion"; export const MotionBox = motion(Box); const Footer = (): JSX.Element => { // const [showBackToTop, setShowBackToTop] = useState(false); // const lastScroll = useRef(0); // const handleScroll = (): void => { // if (window.scrollY >= 500) { // setShowBackToTop(true); // } else { // setShowBackToTop(false); // } // const currentScroll = // window.pageYOffset || document.documentElement.scrollTop; // lastScroll.current = currentScroll <= 0 ? 0 : currentScroll; // }; // useEffect(() => { // if (!window) { // console.log("waiting for mount"); // } else if (window) { // window.addEventListener("scroll", handleScroll); // } // return () => window.removeEventListener("scroll", handleScroll); // }, []); return ( {/* */} {/* */} © {" 2021 - "} {new Date().getFullYear()}{" "} {"Lucid Creations Media"} ); }; export default Footer;