"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; type NavItem = { label: string; href: string; soon?: boolean; }; type NavSection = { title: string; items: NavItem[]; }; const NAV: NavSection[] = [ { title: "Фундамент", items: [ { label: "Логотип", href: "/foundation/logo" }, { label: "Цвета", href: "/foundation/colors" }, { label: "Типографика", href: "/foundation/typography" }, { label: "Иконография", href: "/foundation/icons", soon: true }, ], }, { title: "Компоненты", items: [ { label: "Кнопки", href: "/components/buttons" }, { label: "Форм-контролы", href: "/components/forms" }, { label: "Карточки", href: "/components/cards" }, { label: "Навигация", href: "/components/navigation", soon: true }, ], }, { title: "Блоки", items: [ { label: "Шапка / Навигация", href: "/components/navigation", soon: true }, { label: "Hero-баннер", href: "/blocks/hero", soon: true }, { label: "Вводный текст", href: "/blocks/ceo", soon: true }, { label: "Наши врачи", href: "/blocks/doctors", soon: true }, { label: "Отзывы", href: "/blocks/reviews", soon: true }, { label: "Формы записи", href: "/blocks/contact-forms", soon: true }, { label: "Новости", href: "/blocks/news", soon: true }, { label: "Подвал / Контакт", href: "/blocks/contact", soon: true }, ], }, { title: "Страницы", items: [ { label: "Главная", href: "/pages/home", soon: true }, { label: "Заболевание", href: "/pages/disease", soon: true }, { label: "Все врачи", href: "/pages/doctors", soon: true }, { label: "Врач", href: "/pages/doctor", soon: true }, { label: "Цены", href: "/pages/prices", soon: true }, { label: "Контакты", href: "/pages/contacts", soon: true }, ], }, { title: "Оффлайн элементы", items: [ { label: "Форма сотрудников", href: "/offline/uniform" }, { label: "Бейджи", href: "/offline/badges" }, { label: "Навигация", href: "/offline/navigation" }, { label: "Транспорт", href: "/offline/transport" }, ], }, { title: "Варианты и дубли", items: [ { label: "Варианты блоков", href: "/variants/blocks", soon: true }, { label: "Варианты страниц", href: "/variants/pages", soon: true }, ], }, ]; export function Sidebar() { const pathname = usePathname(); return ( ); }