"use strict";const e=require("react"),l=require("./accessRequestsApi-DZeDvzwv.js");function i(){const[r,t]=e.useState([]),[n,u]=e.useState(!1),[o,a]=e.useState(null),c=async()=>{u(!0),a(null);try{const s=await l.accessRequestsApi.getMyRequests();t(s||[])}catch(s){a(s.message||"Failed to load requests"),t([])}finally{u(!1)}};return e.useEffect(()=>{c()},[]),{requests:r,loading:n,error:o,reload:c}}exports.useUserAccessRequests=i;
//# sourceMappingURL=useUserAccessRequests-DjPQenC2.js.map
