import { useState } from 'react' import { ACCENTS, getAccent, getThemeMode, setAccent, setThemeMode, type Accent } from './theme' const SWATCH: Record = { indigo: '#4f5df0', blue: '#2f7ce8', emerald: '#14957a', violet: '#8250df', rose: '#d4497c', amber: '#b97e10', } /** Compact mode toggle + accent picker; drops into any header. */ export function ThemeSwitcher() { const [mode, setMode] = useState(getThemeMode()) const [accent, setAccentState] = useState(getAccent()) return (
{ACCENTS.map((a) => (
) }