require("./chunk-9hOWP6kD.cjs");
const require_use_optional_store = require("./use-optional-store-CIM4spDu.cjs");
let _tanstack_react_query = require("@tanstack/react-query");
//#region src/hooks/use-store.ts
/**
* Fetches the tenant store branding from GET /api/store. Requires a
* StoreApiProvider (throws otherwise) — use `useOptionalStore()` from
* portal-react in contexts where the provider may be absent.
*/
function useStore() {
	return (0, _tanstack_react_query.useQuery)({
		queryKey: require_use_optional_store.STORE_QUERY_KEY,
		queryFn: require_use_optional_store.fetchStoreQuery(require_use_optional_store.useStoreApi()),
		staleTime: require_use_optional_store.STORE_STALE_TIME
	});
}
//#endregion
Object.defineProperty(exports, "useStore", {
	enumerable: true,
	get: function() {
		return useStore;
	}
});

//# sourceMappingURL=use-store-D89j_R7T.cjs.map