import React from "react"; import { PickerModal, SelectOption } from "@/components/PickerModal"; type AppTheme = (typeof THEME_OPTIONS)[number]["value"]; interface ThemeModalProps { visible: boolean; current: AppTheme; onSelect: (theme: AppTheme) => void; onClose: () => void; } const THEME_OPTIONS = [ { value: "light", label: "Light" }, { value: "dark", label: "Dark" }, { value: "system", label: "System Default" }, ] as const; export function ThemeModal({ visible, current, onSelect, onClose, }: ThemeModalProps) { return ( {THEME_OPTIONS.map((opt) => ( { onSelect(v as "light" | "dark" | "system"); onClose(); }} /> ))} ); }