import type { RulesEdition } from "@initiative/domain"; import { Monitor, Moon, Sun } from "lucide-react"; import { useRulesEditionContext } from "../contexts/rules-edition-context.js"; import { useThemeContext } from "../contexts/theme-context.js"; import { Dialog, DialogHeader } from "./ui/dialog.js"; import type { SegmentedOption } from "./ui/segmented-control.js"; import { SegmentedControl } from "./ui/segmented-control.js"; interface SettingsModalProps { open: boolean; onClose: () => void; } const EDITION_OPTIONS: SegmentedOption[] = [ { value: "5e", label: "5e (2014)" }, { value: "5.5e", label: "5.5e (2024)" }, { value: "pf2e", label: "Pathfinder 2e" }, ]; type ThemePreference = "system" | "light" | "dark"; const THEME_OPTIONS: SegmentedOption[] = [ { value: "system", label: ( <> System ), }, { value: "light", label: ( <> Light ), }, { value: "dark", label: ( <> Dark ), }, ]; export function SettingsModal({ open, onClose }: Readonly) { const { edition, setEdition } = useRulesEditionContext(); const { preference, setPreference } = useThemeContext(); return (
Game System
Theme
); }