import { n as STORE_STALE_TIME, o as useStoreApi, r as fetchStoreQuery, t as STORE_QUERY_KEY } from "./use-optional-store-DpB_jK4Q.mjs";
import { useQuery } from "@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 useQuery({
		queryKey: STORE_QUERY_KEY,
		queryFn: fetchStoreQuery(useStoreApi()),
		staleTime: STORE_STALE_TIME
	});
}
//#endregion
export { useStore as t };

//# sourceMappingURL=use-store-mvCr42YP.mjs.map