/* Top navigation */ // function Nav({ route, setRoute }) { // const activeRoute = route === 'service-detail' ? 'services' : route === 'case-detail' ? 'cases' : route === 'article-detail' ? 'articles' : route; // const items = [ // { id: 'about', label: 'О специалисте' }, // { id: 'services', label: 'Услуги' }, // { id: 'cases', label: 'Кейсы' }, // { id: 'articles', label: 'Статьи' }, // { id: 'prices', label: 'Цены' }, // { id: 'platforms', label: 'Где заказать' }, // { id: 'contact', label: 'Контакты' }, // ]; // const go = (id) => (e) => { // e.preventDefault(); // setRoute(id); // window.scrollTo({ top: 0, behavior: 'instant' }); // }; // return ( //
//
// // W // // Winet Lab // · app.winetlab.site // // // //
принимаю задачи
// // Оставить заявку → // //
//
// ); // } function Nav({ route, setRoute }) { const [open, setOpen] = React.useState(false); const activeRoute = route === 'service-detail' ? 'services' : route === 'case-detail' ? 'cases' : route === 'article-detail' ? 'articles' : route; const items = [ { id: 'about', label: 'О специалисте' }, { id: 'services', label: 'Услуги' }, { id: 'cases', label: 'Кейсы' }, { id: 'articles', label: 'Статьи' }, { id: 'prices', label: 'Цены' }, { id: 'platforms', label: 'Где заказать' }, { id: 'contact', label: 'Контакты' }, ]; const go = (id) => (e) => { e.preventDefault(); setRoute(id); setOpen(false); window.scrollTo({ top: 0, behavior: 'auto' }); }; return (
принимаю задачи
Оставить заявку →
); } window.Nav = Nav;