Files
ozone-tech_owl_prime/src/components/Header.tsx
2026-07-04 12:14:08 +02:00

52 lines
1.5 KiB
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 type { SimulationState } from '../domain/types';
interface HeaderProps {
simulation: SimulationState;
onReset: () => void;
onOpenDemo: () => void;
onOpenScenarios: () => void;
onOpenEngineering: () => void;
}
export default function Header({
simulation,
onReset,
onOpenDemo,
onOpenScenarios,
onOpenEngineering,
}: HeaderProps) {
return (
<header className="site-header">
<div className="header-logo">
<span className="logo-icon" aria-hidden="true">
O
</span>
<div className="logo-text">
<span className="logo-title">OZON Tech Sorter</span>
<span className="logo-subtitle">Product Demo</span>
</div>
</div>
<nav className="header-nav" aria-label="Основная навигация">
<button type="button" className="nav-link" onClick={onOpenDemo}>
Демо
</button>
<button type="button" className="nav-link" onClick={onOpenScenarios}>
Сценарии
</button>
<button type="button" className="nav-link" onClick={onOpenEngineering}>
Инженерный режим
</button>
<button type="button" className="nav-link nav-reset" onClick={onReset}>
Reset
</button>
</nav>
<div className="header-status-compact" aria-live="polite">
<span className={`status-dot ${simulation.systemStatus.toLowerCase()}`} aria-hidden="true" />
<span>{simulation.systemStatus}</span>
</div>
</header>
);
}