/* eslint-disable @next/next/no-img-element */ "use client"; import React, { useState, useEffect } from "react"; import { Phone, Mail, MapPin, Instagram, ShieldCheck, Globe, ArrowUp, Download } from "lucide-react"; import { useSettingsStore } from "../lib/store/settingsStore"; import BrandLogo from "./BrandLogo"; import Link from "next/link"; import { NavigationTarget } from "../lib/types"; export default function Footer({ onB2BOpen }: { onNavigate?: (v: NavigationTarget) => void; onShopNavigate?: (c?: string) => void; onB2BOpen?: () => void; }) { const getText = useSettingsStore(state => state.getText); const isB2BEnabled = useSettingsStore((s) => s.getBoolean('b2bRegistrationOpen', true) && s.getBoolean('b2b_enabled', true)); const [showScroll, setShowScroll] = useState(false); useEffect(() => { const checkScroll = () => { if (window.scrollY > 300) { setShowScroll(true); } else { setShowScroll(false); } }; window.addEventListener('scroll', checkScroll); return () => window.removeEventListener('scroll', checkScroll); }, []); const scrollToTop = () => { window.scrollTo({ top: 0, behavior: 'smooth' }); }; return ( ); }