import React from 'react'; import { X, Plus, Check, LayoutDashboard, BarChart2, Ticket, Activity, Users, UserX, PieChart } from 'lucide-react'; import { WIDGET_DEFINITIONS, WidgetType } from './types'; interface WidgetConfigModalProps { isOpen: boolean; onClose: () => void; activeWidgets: string[]; onToggleWidget: (widgetId: string) => void; onResetLayout: () => void; } const WIDGET_ICONS: Record = { 'appointments-metric': , 'customers-metric': , 'services-metric': , 'resources-metric': , 'revenue-chart': , 'appointments-chart': , 'open-tickets': , 'recent-activity': , 'capacity-utilization': , 'no-show-rate': , 'customer-breakdown': , }; const WidgetConfigModal: React.FC = ({ isOpen, onClose, activeWidgets, onToggleWidget, onResetLayout, }) => { if (!isOpen) return null; const widgets = Object.values(WIDGET_DEFINITIONS); return (
{/* Backdrop */}
{/* Modal */}
{/* Header */}

Configure Dashboard Widgets

{/* Content */}

Select which widgets to show on your dashboard. You can drag widgets to reposition them.

{widgets.map((widget) => { const isActive = activeWidgets.includes(widget.id); return ( ); })}
{/* Footer */}
); }; export default WidgetConfigModal;