import React, { useEffect } from "react"; import classes from "./classes.module.scss"; import Mobile from "./mobile"; import Desktop from "./desktop"; import Tablet from "./tablet"; type IProps = { className?: string; hasLeftPadding?: boolean; }; export default function Footer({ className, hasLeftPadding = false }: IProps) { const footerRef = React.useRef(null); useEffect(() => { if (!footerRef.current) return; const footerHeight = footerRef.current.clientHeight + 1; document.documentElement.style.setProperty("--footer-height", `${footerHeight}px`); }); return ( ); }