import { createAxiosClient as e } from "../api/client.js";
import { createApi as t } from "../api/index.js";
import { useStudio as n } from "../providers/StudioProvider.js";
import { useMemo as r } from "react";
//#region src/hooks/useApi.ts
function i() {
	let { environment: i } = n();
	return r(() => {
		let n = t(e(i.url, i.id));
		return {
			envKey: i.id,
			api: n
		};
	}, [i.id, i.url]);
}
//#endregion
export { i as useApiClient };
