"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/badges", soon: true }, { label: "Алерты", href: "/components/alerts", soon: true }, { label: "Модальные окна", href: "/components/modals", soon: true }, { label: "Таблицы", href: "/components/tables", soon: true }, { label: "Навигация", href: "/components/navigation", soon: true }, ], }, { title: "Блоки", items: [ { label: "Hero", href: "/blocks/hero", soon: true }, { label: "CEO-текст", href: "/blocks/ceo", soon: true }, { label: "Наши врачи", href: "/blocks/doctors", soon: true }, { label: "Отзывы", href: "/blocks/reviews", soon: true }, { label: "Новости", href: "/blocks/news", soon: true }, { label: "Формы контакта", href: "/blocks/contact-forms", soon: true }, { label: "Контакт", href: "/blocks/contact", soon: true }, { label: "Услуги", href: "/blocks/services", 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: "/experiments", soon: true }, ], }, ]; export function Sidebar() { const pathname = usePathname(); return ( ); }