'use client'; import { useRef } from 'react'; import { motion, useInView } from 'framer-motion'; import { Building, MapPin, Phone, Mail } from 'lucide-react'; import Link from 'next/link'; const navigation = [ { name: 'О компании', href: '#about' }, { name: 'Преимущества', href: '#why-us' }, { name: 'Как мы работаем', href: '#workflow' }, { name: 'Сертификаты', href: '#certificates' }, { name: 'Услуги', href: '#services' }, { name: 'Контакты', href: '#contacts' }, ]; const legalLinks = [ { name: 'Политика конфиденциальности', href: '/privacy-policy' }, { name: 'Пользовательское соглашение', href: '/terms' }, { name: 'Обработка персональных данных', href: '/personal-data' }, ]; const cityContacts = { Москва: { address: 'г. Москва, ул. Пресненская, д. 6, стр. 2', phone: '+7 (916) 830-58-58', email: 'ckeproekt@yandex.ru', }, Чебоксары: { address: 'г. Чебоксары, пр. Тракторостроителей, д. 11', phone: '+7 (916) 830-58-58', email: 'ckeproekt@yandex.ru', }, }; interface FooterProps { selectedCity: keyof typeof cityContacts; } const Footer = ({ selectedCity }: FooterProps) => { const cityData = cityContacts[selectedCity]; const ref = useRef(null); const isInView = useInView(ref, { once: true, margin: '-100px' }); const containerVariants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: 0.1, delayChildren: 0.3, }, }, }; const itemVariants = { hidden: { y: 20, opacity: 0 }, visible: { y: 0, opacity: 1, transition: { duration: 0.5, ease: [0.16, 1, 0.3, 1], }, }, }; return ( ); }; export default Footer;