import { shallowRef } from 'vue'; /** * Alle Symbole (Lucide) – lokal, aber als eigene Datei, die erst geladen wird, * wenn ein Symbol außerhalb der kuratierten Auswahl gebraucht wird. */ export const iconSet = shallowRef(null); let loading = null; export function loadIconSet() { loading ??= import('./icon-set.js').then((module) => { iconSet.value = { icons: module.default, aliases: module.aliases }; return iconSet.value; }); return loading; } /** SVG-Inhalt eines Symbols aus dem geladenen Satz (oder null). */ export function iconMarkup(name) { const set = iconSet.value; if (!set || !name) return null; return set.icons[name] ?? set.icons[set.aliases[name]] ?? null; }