import { useSettings } from '@/hooks/useSettings' import { Loader2 } from 'lucide-react' import { Label } from '@/components/ui/label' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' import { Switch } from '@/components/ui/switch' import { TTSSettings } from './TTSSettings' export function GeneralSettings() { const { preferences, isLoading, updateSettings, isUpdating } = useSettings() if (isLoading) { return (
) } return (

General Preferences

Choose your preferred color scheme

Automatically scroll to bottom when new messages arrive

updateSettings({ autoScroll: checked })} />

Display model reasoning and thought process

updateSettings({ showReasoning: checked })} />

Automatically expand tool call details by default

updateSettings({ expandToolCalls: checked })} />

Show file diffs expanded by default for edit operations

updateSettings({ expandDiffs: checked })} />
{isUpdating && (
Saving...
)}
) }