1
0
Fork 0
fahrPool/web/components/navigation/NavIcon.tsx

23 lines
975 B
TypeScript

import type { NavIcon as NavIconName } from "@/lib/navigation";
// Schlichte Strich-Icons (24er Raster), Farbe ueber currentColor.
const PFADE: Record<NavIconName, string> = {
board: "M4 5h4v14H4zM10 5h4v9h-4zM16 5h4v6h-4z",
auftraege: "M8 4h8l1 2h3v14H4V6h3zM8 11h8M8 15h5",
kalender: "M4 6h16v14H4zM4 10h16M8 3v4M16 3v4",
zeit: "M12 4a8 8 0 100 16 8 8 0 000-16zM12 8v4l3 2",
profil: "M12 12a4 4 0 100-8 4 4 0 000 8zM4 20a8 8 0 0116 0",
auslastung: "M4 19h16M6 16l4-5 3 3 5-7",
reports: "M5 19V9M10 19V5M15 19v-7M20 19v-4",
plattform: "M4 7l8-4 8 4-8 4zM4 12l8 4 8-4M4 17l8 4 8-4",
verwaltung: "M4 7h16M4 12h16M4 17h16",
};
export function NavIcon({ name, className = "h-6 w-6" }: { name: NavIconName; className?: string }) {
return (
<svg viewBox="0 0 24 24" className={className} fill="none" stroke="currentColor" strokeWidth={1.8} aria-hidden="true">
<path strokeLinecap="round" strokeLinejoin="round" d={PFADE[name]} />
</svg>
);
}