import { jsx as _jsx } from "react/jsx-runtime";
import { isThermostatDevice } from 'seamapi';
import { defaultDeviceFilter, DeviceTable, } from '../../../lib/index.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