"use client"; import { useRef, useEffect, useState } from "react"; import FillWidthText from "@/components/shared/FillWidthText/FillWidthText"; import { cls } from "@/lib/utils"; interface FooterLogoRevealProps { // logoSrc?: string; // logoAlt?: string; logoText?: string; logoLineHeight?: number; ariaLabel?: string; className?: string; wrapperClassName?: string; containerClassName?: string; logoClassName?: string; } const FooterLogoReveal = ({ // logoSrc, // logoAlt = "Logo", logoText = "Webild", logoLineHeight = 1.1, ariaLabel = "Site footer", className = "", wrapperClassName = "", containerClassName = "", logoClassName = "", }: FooterLogoRevealProps) => { const footerRef = useRef(null); const [footerHeight, setFooterHeight] = useState(0); useEffect(() => { const updateHeight = () => { if (footerRef.current) { const height = footerRef.current.offsetHeight; setFooterHeight(height); } }; updateHeight(); const resizeObserver = new ResizeObserver(updateHeight); const currentFooter = footerRef.current; if (currentFooter) { resizeObserver.observe(currentFooter); } return () => { resizeObserver.disconnect(); }; }, []); return (
); }; FooterLogoReveal.displayName = "FooterLogoReveal"; export default FooterLogoReveal;