"use client"; import type { DashboardWidgetType } from "@capakraken/shared/types"; import { WIDGET_CATALOG } from "./widget-registry.js"; interface AddWidgetModalProps { onAdd: (type: DashboardWidgetType) => void; onClose: () => void; } export function AddWidgetModal({ onAdd, onClose }: AddWidgetModalProps) { return (
{ if (e.target === e.currentTarget) onClose(); }} >
{/* Header */}

Add Widget

{/* Grid of widgets */}
{WIDGET_CATALOG.map((def) => ( ))}
); }