import React from 'react' import { Loader2, Map as MapIcon, Settings2 } from 'lucide-react' import { useTranslation } from '../../i18n' import Section from '../Settings/Section' import { SettingRows, SettingsHint } from '../Settings/settingsKit' import { fs } from '../shared/DialogShell' import { EditorField, INPUT, Segmented } from '../shared/dialogParts' import CustomSelect from '../shared/CustomSelect' import { MapView } from '../Map/MapView' import { SYMBOLS, currenciesWith } from '../Budget/BudgetPanel.constants' import type { DistanceUnit, WeekStart } from '../../types' import { weekStartOptions } from '../../utils/calendarWeek' import { withTileApiKey } from '../../utils/tileUrl' import { defaultStyleForProvider } from '../Map/glProviders' import { MAP_PRESETS, type MapProvider } from '../Settings/mapSettingsModel' import RoutingInstanceFields from './RoutingInstanceFields' import { useDefaultUserSettings, type Defaults } from './useDefaultUserSettings' /** * One default as a row of the card's white box: its name (with the reset link * once it is set) on the left, the choice on the right. `stacked` puts a wide * choice and a hint under the name. The label sits straight in the row, so the * row is the nearest box around both the name and its choice. */ function ChoiceRow({ label, hint, stacked = false, children, }: { label: React.ReactNode hint?: string stacked?: boolean children: React.ReactNode }) { return (
{hint}
}