import { Switch } from "@/components/ui/switch"; import { useTranslation } from "react-i18next"; import type { SettingsFormState } from "@/hooks/useSettings"; interface WindowSettingsProps { settings: SettingsFormState; onChange: (updates: Partial) => void; } export function WindowSettings({ settings, onChange }: WindowSettingsProps) { const { t } = useTranslation(); return (

{t("settings.windowBehavior")}

{t("settings.windowBehaviorHint")}

onChange({ minimizeToTrayOnClose: value })} /> onChange({ enableClaudePluginIntegration: value }) } />
); } interface ToggleRowProps { title: string; description?: string; checked: boolean; onCheckedChange: (value: boolean) => void; } function ToggleRow({ title, description, checked, onCheckedChange, }: ToggleRowProps) { return (

{title}

{description ? (

{description}

) : null}
); }