import { NavLink } from "react-router-dom"; import { Film, Moon, Settings2, Sun, Video } from "lucide-react"; import type { ReactNode } from "react"; import { useTheme } from "@/hooks/useTheme"; function NavItem({ to, label, icon, isDark, }: { to: string; label: string; icon: ReactNode; isDark: boolean; }) { return ( [ "inline-flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition", isActive ? (isDark ? "bg-zinc-800 text-zinc-50" : "bg-zinc-200 text-zinc-900") : (isDark ? "text-zinc-300 hover:bg-zinc-900 hover:text-zinc-50" : "text-zinc-700 hover:bg-zinc-100"), ].join(" ") } > {icon} {label} ); } export default function TopNav() { const { isDark, toggleTheme } = useTheme(); return (
IPCam Dashboard
MediaMTX + Orange Pi
); }