import classNames from 'classnames' import { ChevronDownIcon } from 'lib/icons/ChevronDown.js' import { FanIcon } from 'lib/icons/Fan.js' import { FanOutlineIcon } from 'lib/icons/FanOutline.js' import type { FanModeSetting } from 'lib/seam/thermostats/thermostat-device.js' import { Menu } from 'lib/ui/Menu/Menu.js' import { ThermoModeMenuOption } from 'lib/ui/thermostat/ThermoModeMenuOption.js' const modes: FanModeSetting[] = ['auto', 'on'] interface FanModeMenuProps { mode: FanModeSetting onChange: (mode: FanModeSetting) => void block?: boolean size?: 'regular' | 'large' } export function FanModeMenu({ mode, onChange, block, size = 'regular', }: FanModeMenuProps): JSX.Element { return ( ( )} horizontalOffset={-20} backgroundProps={{ className: 'seam-thermo-mode-menu', }} > {modes.map((m) => ( } isSelected={mode === m} onClick={() => { onChange(m) }} /> ))} ) } const t = { auto: 'Auto', on: 'On', circulate: 'Circulate', }