import { useQuery } from '@tanstack/react-query';
import { useSeamClient } from '../../../../lib/seam/use-seam-client.js';
export function useManufacturer(params) {
    const { client: seam } = useSeamClient();
    const { data, ...rest } = useQuery({
        enabled: seam != null,
        queryKey: ['internal', 'manufacturers', 'get', params],
        queryFn: async () => {
            if (seam == null)
                return null;
            const { data: { manufacturer }, } = await seam.client.get('/internal/devicedb/v1/manufacturers/get', { params });
            return manufacturer;
        },
    });
    return { ...rest, manufacturer: data };
}
//# sourceMappingURL=use-manufacturer.js.map