import { useQuery } from '@tanstack/react-query';
import { useSeamClient } from '../../../../lib/seam/use-seam-client.js';
export function useClimateSettingSchedule(params) {
    const normalizedParams = typeof params === 'string'
        ? { climate_setting_schedule_id: params }
        : params;
    const { client } = useSeamClient();
    const { data, ...rest } = useQuery({
        enabled: client != null,
        queryKey: [
            'thermostats',
            'climate_setting_schedules',
            'get',
            normalizedParams,
        ],
        queryFn: async () => {
            if (client == null)
                return null;
            return await client.thermostats.climateSettingSchedules.get(normalizedParams);
        },
    });
    return { ...rest, climateSettingSchedule: data };
}
//# sourceMappingURL=use-climate-setting-schedule.js.map