import { JSX } from 'preact'; import { activePanel, setActivePanel, panelOpen, togglePanel, PanelId } from '../../state/app'; import { teamPanels } from '../../state/team'; import { Button } from '../base/Button'; import './Panel.css'; // Panel icons const getPanelIcon = (panelId: string): JSX.Element => { const icons: Record = { metrics: ( ), tokens: ( ), figma: ( ), activity: ( ), chat: ( ), console: ( ), network: ( ), tests: ( ), system: ( ) }; return icons[panelId] || icons.activity; }; // Panel labels const panelLabels: Record = { metrics: 'Metrics', tokens: 'Tokens', figma: 'Figma', activity: 'Activity', chat: 'Chat', diff: 'Visual Diff', accessibility: 'Accessibility', screenshots: 'Screenshots', console: 'Console', network: 'Network', tests: 'Tests', system: 'System' }; export function Panel() { const panels = teamPanels.value; return ( ); } function PanelContent({ panelId }: { panelId: PanelId }) { // Placeholder content for each panel switch (panelId) { case 'metrics': return ; case 'activity': return ; case 'console': return ; default: return (

{panelLabels[panelId as string] || 'Panel'} content

); } } function MetricsPanel() { return (
Components 24
Tokens 156
Health Score 92%
Drift Issues 3
); } function ActivityPanel() { const activities = [ { id: 1, action: 'Token sync completed', time: '2 min ago', status: 'success' }, { id: 2, action: 'Component generated', time: '5 min ago', status: 'success' }, { id: 3, action: 'Figma extraction', time: '10 min ago', status: 'info' } ]; return (
{activities.map(activity => (
{activity.action} {activity.time}
))}
); } function ConsolePanel() { return (
        
{`[INFO] DSS Admin UI loaded
[INFO] Connected to API server
[INFO] Project context loaded`}
        
      
); }