import { SKI_DISCIPLINES, SKI_TECHNIQUES, type SkiDiscipline, type SkiTechnique } from '@trek/shared'; import { Info } from 'lucide-react'; import { useTranslation } from '../../../i18n'; import { LABEL, Segmented } from '../../shared/dialogParts'; import { InfoDot, TourNotice } from '../tourParts'; import { skiChoiceMissing, type SkiChoice } from './skiChoice'; import { SKI_DISCIPLINE_ICON } from './skiDiscipline'; /** * SKI-02: what a ski tour is, chosen on purpose: the discipline, none until * one is picked, six of them in two columns, and for cross-country the * technique, Unknown among its answers. The technique stays in sight but * dimmed while another discipline is chosen. The info dot says what TREK does * with the tour. The GPX import, the classification dialog and the planner * share it; `planned` says the choice is asked for a tour to save rather than * a track to import. */ export function SkiClassificationFields({ choice, onChange, planned = false, }: { choice: SkiChoice; onChange: (choice: SkiChoice) => void; planned?: boolean; }) { const { t } = useTranslation(); const crossCountry = choice.discipline === 'cross_country'; const missing = skiChoiceMissing(choice); return (