import type { ReactNode } from 'react'; /** * Kleines einfarbiges Symbol je Kacheltyp fuer die Kachel-Kopfzeile * (Design „Mosaik“). Seit Runde 3 als „Chip“: 16-px-Symbol auf einer * 26-px-Flaeche, beides aus der persoenlichen Akzentfarbe abgeleitet * (`.widget-icon-chip` in globals.css) — bringt Farbe in die Kacheln, ohne * bunt zu werden. `plain` ist das nackte graue Symbol (Vorschlagsknoepfe). */ const PATHS: Record = { calendar: ( <> ), note: ( <> ), favorites: ( ), clock: ( <> ), search: ( <> ), calculator: ( <> ), stopwatch: ( <> ), 'picture-frame': ( <> ), xframe: ( <> ), proxmox: ( <> ), reminder: ( <> ), }; export function WidgetIcon({ type, variant = 'chip', }: { type: string; variant?: 'chip' | 'plain'; }) { const paths = PATHS[type]; if (!paths) return null; const svg = ( ); if (variant === 'plain') return svg; return ( ); }