--- import MobileMenu from "./MobileMenu.astro"; import Button from "@components/base/Button.astro"; import { CONTACT_CONSTANTS } from "@constants/constants.ts"; const { pathname } = Astro.url; const navLinks = [ { name: "Главная", href: "/", active: pathname === "/" }, { name: "Услуги", href: "/services", active: pathname.startsWith("/services"), children: [ { name: "Административные дела", href: "/services/administrative", icon: "⚖️", }, { name: "Защита должников", href: "/services/debt-protection", icon: "💳", }, { name: "Арбитражные дела", href: "/services/arbitration", icon: "💼", }, { name: "Уголовные дела", href: "/services/criminal", icon: "⚖️", }, { name: "Гражданские дела", href: "/services/civil", icon: "📋" }, { name: "Семейные дела", href: "/services/family", icon: "👨‍👩‍👧" }, { name: "Дела СВО", href: "/services/svo", icon: "🛡️" }, ], }, { name: "Кейсы", href: "/cases", active: pathname === "/cases" }, { name: "Блог", href: "/blog", active: pathname === "/blog" }, { name: "О Бюро", href: "/about", active: pathname === "/about" }, { name: "Контакты", href: "/contacts", active: pathname === "/contacts" }, ]; const rawLinks = navLinks.filter((link) => { if (pathname === "/" && link.href === "/") return false; return true; }); ---
ADVOKAT086