"use strict";const e=require("react"),i=require("./index-CVOA4qIe.js");function u(){const[r,o]=e.useState([]),[l,a]=e.useState(!0),[c,s]=e.useState(null),t=e.useCallback(async()=>{a(!0),s(null);try{const n=await i.adminApi.myTenants.getAll();o(n)}catch(n){console.error("Failed to load admin tenants:",n),s("Failed to load tenants")}finally{a(!1)}},[]);return e.useEffect(()=>{t()},[t]),{tenants:r,loading:l,error:c,refresh:t}}exports.useAdminTenants=u;
//# sourceMappingURL=useAdminTenants-Db1PzPDQ.js.map
