require("./chunk-9hOWP6kD.cjs");
let react = require("react");
//#region src/providers/PortalTenantClientProvider.tsx
const PortalTenantClientContext = (0, react.createContext)(null);
const PortalTenantClientProvider = PortalTenantClientContext.Provider;
/**
* Returns the portal-tenant FetchClient from context.
* Must be used within a FluidProvider.
*/
function usePortalTenantClient() {
	const client = (0, react.use)(PortalTenantClientContext);
	if (!client) throw new Error("usePortalTenantClient must be used within a FluidProvider");
	return client;
}
//#endregion
Object.defineProperty(exports, "PortalTenantClientProvider", {
	enumerable: true,
	get: function() {
		return PortalTenantClientProvider;
	}
});
Object.defineProperty(exports, "usePortalTenantClient", {
	enumerable: true,
	get: function() {
		return usePortalTenantClient;
	}
});

//# sourceMappingURL=PortalTenantClientProvider-Ct2vdZPi.cjs.map