import { getSharedRegistry } from "../../plugins/registry"; import type { GloomSlots } from "../../types/plugin"; export function PluginSlot({ name, props, }: { name: K; props?: GloomSlots[K]; }) { const registry = getSharedRegistry(); return registry?.renderSlot(name, props ?? ({} as GloomSlots[K])) ?? null; }