/** * A component a prop such as `icon` renders: a Svelte 5 function component * or a Svelte 3 or 4 component class, so icons from `carbon-icons-svelte` * fit either way. `null` renders nothing, as with ``. */ export type IconComponent = // eslint-disable-next-line @typescript-eslint/no-explicit-any -- `` takes any component class or function, whatever its props. (new (...args: any[]) => any) | ((...args: any[]) => any) | null;