"use client"; import { memo, useRef, useEffect, useState } from "react"; import FooterLogo from "./FooterLogo"; import { cls } from "@/lib/utils"; interface FooterLogoRevealProps { // logoSrc?: string; // logoAlt?: string; logoText?: string; ariaLabel?: string; className?: string; wrapperClassName?: string; containerClassName?: string; logoClassName?: string; svgClassName?: string; } const FooterLogoReveal = memo(function FooterLogoReveal({ // logoSrc, // logoAlt = "Logo", logoText = "Webild", ariaLabel = "Site footer", className = "", wrapperClassName = "", containerClassName = "", logoClassName = "", svgClassName = "", }) { 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;