import { Link, useLocation } from 'react-router-dom'; import { useThemeContext } from '../contexts/ThemeContext'; const navItems = [ { path: '/', label: 'λŒ€μ‹œλ³΄λ“œ', icon: 'πŸ“Š' }, { path: '/jobs', label: 'μž‘μ—…', icon: 'βš™οΈ' }, { path: '/executions', label: 'μ‹€ν–‰ 이λ ₯', icon: 'πŸ“‹' }, { path: '/schedules', label: 'μŠ€μΌ€μ€„', icon: 'πŸ•' }, { path: '/schedule-timeline', label: 'νƒ€μž„λΌμΈ', icon: 'πŸ“…' }, ]; export default function Navbar() { const location = useLocation(); const { theme, toggle } = useThemeContext(); const isActive = (path: string) => { if (path === '/') return location.pathname === '/'; return location.pathname.startsWith(path); }; return ( ); }