import { useApp } from "../context/AppContext.jsx"; import { THEMAS } from "../constants/themas.js"; const BACKUP_ICON = ( ); const RESTORE_ICON = ( ); function ActionRow({ icon, title, description, onClick }) { return (
{icon}
{title}
{description}
); } export default function InstellingenModal({ onClose }) { const { T, darkMode, setDarkMode, thema, setThema, doBackup, doRestore } = useApp(); return (
e.stopPropagation()} style={{ background: T.popupBg, border: `1px solid ${T.border}`, borderRadius: 16, padding: "22px 22px 8px", width: 360, boxShadow: "0 16px 48px rgba(0,0,0,0.4)", color: T.text, }} > {/* Header */}
Instellingen
{/* Dark mode rij */}
Dark mode
{/* Kleurthema */}
Kleurthema {T.themaNaam}
{/* Drie kolommen: negen thema's vullen zo precies drie rijen, zonder een halve rij onderaan. */}
{THEMAS.map((t) => { const gekozen = t.id === thema; return (
{/* Acties */}
{ doBackup(); onClose(); }} />
{ doRestore(); onClose(); }} />
); }