import classNames from 'classnames' import type { CSSProperties } from 'react' import { ChevronDownIcon } from 'lib/icons/ChevronDown.js' import { OffIcon } from 'lib/icons/Off.js' import { ThermostatCoolIcon } from 'lib/icons/ThermostatCool.js' import { ThermostatHeatIcon } from 'lib/icons/ThermostatHeat.js' import { ThermostatHeatCoolIcon } from 'lib/icons/ThermostatHeatCool.js' import type { HvacModeSetting } from 'lib/seam/thermostats/thermostat-device.js' import { Menu } from 'lib/ui/Menu/Menu.js' import { ThermoModeMenuOption } from 'lib/ui/thermostat/ThermoModeMenuOption.js' interface ClimateModeMenuProps { mode: HvacModeSetting onChange: (mode: HvacModeSetting) => void supportedModes?: HvacModeSetting[] buttonTextVisible?: boolean className?: string style?: CSSProperties block?: boolean size?: 'regular' | 'large' } export function ClimateModeMenu({ mode, onChange, supportedModes = ['heat', 'cool', 'heat_cool', 'off'], buttonTextVisible = false, className, style, block, size = 'regular', }: ClimateModeMenuProps): JSX.Element { return (
) } function ModeIcon(props: { mode: HvacModeSetting }): JSX.Element { switch (props.mode) { case 'heat': return