"use strict";var r=require("react"),e=require("lodash"),i=require("./PermissionsContext.js");module.exports=function(s){var t=i.default(),n=t.permissions,a=t.fetchPermissions,o=e.toArray(s);r.useEffect((function(){a(o)}),[o.join()]);var u=function(r){return n[r]||{active:!1,loading:!0}};return e.isArray(s)?s.map(u):e.mapValues(s,u)};
//# sourceMappingURL=usePermissions.js.map
