import classNames from 'classnames'; import { useSettings } from '../hooks/useSettings'; import { useTheme } from '../hooks/useTheme'; import { useUpdateSettings } from '../hooks/useUpdateSettings'; import type { Appearance } from '../lib/theme/window'; import { Checkbox } from './core/Checkbox'; import { Input } from './core/Input'; import { VStack } from './core/Stacks'; export const SettingsDialog = () => { const { appearance, setAppearance } = useTheme(); const settings = useSettings(); const updateSettings = useUpdateSettings(); if (settings == null) { return null; } console.log('SETTINGS', settings); return (
updateSettings.mutateAsync({ ...settings, validateCertificates }) } /> updateSettings.mutateAsync({ ...settings, followRedirects }) } />
Request Timeout (ms)
parseInt(value) >= 0} onChange={(v) => updateSettings.mutateAsync({ ...settings, requestTimeout: parseInt(v) || 0 }) } />
Appearance
{/**/}
); }; const selectBackgroundStyles = { backgroundImage: `url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`, backgroundPosition: 'right 0.5rem center', backgroundRepeat: 'no-repeat', backgroundSize: '1.5em 1.5em', };