Files
ozone-tech_owl_prime/src/components/AppNav.tsx
Даня Архипов 4413f01ce4 chore: preserve pre-cleanup product baseline
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 17:48:00 +00:00

36 lines
937 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { NavLink } from 'react-router-dom';
interface AppNavProps {
/** Overlay (desktop sim), bar (mobile full-width), solid (docs header). */
variant?: 'overlay' | 'bar' | 'solid';
}
/**
* Product navigation — only Simulation and Documentation.
*/
export default function AppNav({ variant = 'solid' }: AppNavProps) {
return (
<nav
className={`app-nav app-nav-${variant}`}
aria-label="Основная навигация"
data-testid="app-nav"
>
<NavLink
to="/"
end
className={({ isActive }) => `app-nav-link${isActive ? ' active' : ''}`}
data-testid="nav-simulation"
>
Симуляция
</NavLink>
<NavLink
to="/documentation"
className={({ isActive }) => `app-nav-link${isActive ? ' active' : ''}`}
data-testid="nav-documentation"
>
Документация
</NavLink>
</nav>
);
}