diff --git a/src/components/sections/footer/FooterBrandReveal.tsx b/src/components/sections/footer/FooterBrandReveal.tsx index 6f0d18b..e69de29 100644 --- a/src/components/sections/footer/FooterBrandReveal.tsx +++ b/src/components/sections/footer/FooterBrandReveal.tsx @@ -1,101 +0,0 @@ -import { useRef, useEffect, useState } from "react"; -import { ChevronRight } from "lucide-react"; -import { useButtonClick } from "@/hooks/useButtonClick"; -import AutoFillText from "@/components/ui/AutoFillText"; -import { cls } from "@/lib/utils"; - -type FooterLink = { - label: string; - href?: string; - onClick?: () => void; -}; - -type FooterColumn = { - items: FooterLink[]; -}; - -const FooterLinkItem = ({ label, href, onClick }: FooterLink) => { - const handleClick = useButtonClick(href, onClick); - - return ( -
-
- ); -}; - -const FooterBrandReveal = ({ - brand, - columns, -}: { - brand: string; - columns: FooterColumn[]; -}) => { - const footerRef = useRef(null); - const [footerHeight, setFooterHeight] = useState(0); - - useEffect(() => { - const updateHeight = () => { - if (footerRef.current) { - setFooterHeight(footerRef.current.offsetHeight); - } - }; - - updateHeight(); - - const resizeObserver = new ResizeObserver(updateHeight); - if (footerRef.current) { - resizeObserver.observe(footerRef.current); - } - - return () => resizeObserver.disconnect(); - }, []); - - return ( -
-
- -
-
- ); -}; - -export default FooterBrandReveal;