import { jsx as _jsx } from "react/jsx-runtime";
import { defaultDeviceFilter, DeviceTable } from '../../../lib/index.js';
import { isThermostatDevice } from '../../../lib/seam/thermostats/thermostat-device.js';
const deviceFilter = (device, searchInputValue) => {
    if (!isThermostatDevice(device))
        return false;
    return defaultDeviceFilter(device, searchInputValue);
};
export function ThermostatSelect({ onSelect, }) {
    return (_jsx(DeviceTable, { deviceFilter: deviceFilter, preventDefaultOnDeviceClick: true, onDeviceClick: onSelect }));
}
//# sourceMappingURL=ThermostatSelect.js.map