16 lines
922 B
TypeScript
16 lines
922 B
TypeScript
export type NavKey = 'geraete' | 'auftraege' | 'skripte' | 'kunden' | 'verwaltung';
|
|
const glyphs = {
|
|
geraete: 'M3 4h18v12H3z M8 20h8 M12 16v4',
|
|
auftraege: 'M8 5H5v16h14V5h-3 M9 3h6v4H9z M8 12h8 M8 16h5',
|
|
skripte: 'M7 7l-5 5 5 5 M17 7l5 5-5 5 M14 4l-4 16',
|
|
kunden: 'M4 21V5l10-2v18 M14 10h6v11 M2 21h20 M7 8h1 M10 8h1 M7 12h1 M10 12h1 M8 21v-4h3v4',
|
|
verwaltung: 'M3 6h7 M14 6h7 M3 12h12 M19 12h2 M3 18h3 M10 18h11 M10 3v6 M16 9v6 M8 15v6',
|
|
suchen: 'M16 16l5 5 M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0',
|
|
plus: 'M12 5v14 M5 12h14',
|
|
abmelden: 'M10 4H4v16h6 M8 12h13 M16 7l5 5-5 5',
|
|
zurueck: 'M20 12H4 M10 6l-6 6 6 6',
|
|
};
|
|
export function NavIcon({ name }: { name: keyof typeof glyphs }) {
|
|
return <svg className="nav-icon" aria-hidden="true" focusable="false" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.65" strokeLinecap="round" strokeLinejoin="round"><path d={glyphs[name]}/></svg>;
|
|
}
|