"use client"; import { Sun, Moon, Monitor } from "lucide-react"; import { useChatStore } from "@/lib/store"; import { useTheme } from "@/components/layout/ThemeProvider"; import { SettingRow, SectionHeader, Toggle, Slider } from "./SettingRow"; import { cn } from "@/lib/utils"; export function GeneralSettings() { const { settings, updateSettings, resetSettings } = useChatStore(); const { setTheme } = useTheme(); const themes = [ { id: "light" as const, label: "Light", icon: Sun }, { id: "dark" as const, label: "Dark", icon: Moon }, { id: "system" as const, label: "System", icon: Monitor }, ]; function handleThemeChange(t: "light" | "dark" | "system") { updateSettings({ theme: t }); setTheme(t); } return (