'use client'; import { motion } from "framer-motion"; import { Heart, Mail, Phone, MapPin } from "lucide-react"; import { useEffect, useState } from "react"; import Link from "next/link"; export function Footer() { const [isDark, setIsDark] = useState(false); useEffect(() => { const checkTheme = () => { setIsDark(document.documentElement.classList.contains('dark')); }; checkTheme(); const observer = new MutationObserver(checkTheme); observer.observe(document.documentElement, { attributes: true, attributeFilter: ['class'] }); return () => observer.disconnect(); }, []); const scrollToSection = (id: string) => { const element = document.getElementById(id); if (element) { element.scrollIntoView({ behavior: "smooth" }); } }; const quickLinks = [ { name: 'Home', href: '#home', isScroll: true }, { name: 'About', href: '#about', isScroll: true }, { name: 'Services', href: '#services', isScroll: true }, { name: 'Contact', href: '#contact', isScroll: true }, { name: 'Admin Panel', href: '/login', isScroll: false }, ]; return ( ); }