import { useQuery } from "@pinia/colada";
import { u as useApi } from "./useApi-Dv-cyvzn.js";
import { d as useI18n } from "../server.mjs";
import { computed } from "vue";
function useGlobalClientsQuery() {
  const { get } = useApi();
  const { locale } = useI18n();
  return useQuery({
    staleTime: 1e3 * 60 * 60,
    key: computed(() => ["clients", locale.value]),
    query: async () => {
      try {
        const response = await get("projects_logos");
        return response.data.data;
      } catch (error) {
        console.error(error.message);
      }
    }
  });
}
function useServiceClientsQuery(service) {
  const { get } = useApi();
  const { locale } = useI18n();
  return useQuery({
    staleTime: 1e3 * 60 * 60,
    key: computed(() => ["clients", locale.value, service]),
    query: async () => {
      try {
        const response = await get(
          `projects_logos?service=${service}`
        );
        return response.data.data;
      } catch (error) {
        console.error(error.message);
      }
    }
  });
}
export {
  useServiceClientsQuery as a,
  useGlobalClientsQuery as u
};
//# sourceMappingURL=clients-C7idLUOa.js.map
