import { n as useStoreApi } from "./store-api-context-C1lXT_3d.mjs";
import { useQuery } from "@tanstack/react-query";
//#region src/hooks/use-store.ts
/**
* Fetches the tenant store branding from GET /api/store.
*/
function useStore() {
	const api = useStoreApi();
	return useQuery({
		queryKey: ["portalTenant", "store"],
		queryFn: async () => {
			return (await api.fetchStore()).store;
		},
		staleTime: 300 * 1e3
	});
}
//#endregion
export { useStore as t };

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