"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/checkIsUserAdmin.js"),r=require("../stores/picker-props-store/usePickerPropsStore.js");require("../../../clients/subscriptions/constants.js"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/regenerator"),require("querystring"),require("react"),require("uuid/v1"),require("lodash"),require("../../../clients/subscriptions.v1.js"),require("../../../clients/jsonApi/index.js"),require("../../../clients/subscriptions/subscriptions-client.factory.js"),require("immutable"),require("query-string"),require("../../../constants/goals.js"),require("../../../constants/segment.js"),require("../../../constants/alerts.js"),require("../../../constants/apps.js"),require("../../../constants/drillstring.js"),require("../../../constants/completion.js"),require("../../../constants/appPackages.js"),require("../../../constants/notifications.js"),require("../../../constants/feed.js"),require("../../../constants/bha.js"),require("../../../constants/corvaCompanyId.js"),require("../../GradientManager/configuration/constants.js"),require("../../../utils/index.js"),require("uuid"),require("jsona"),require("../../../utils/env.js"),require("../../StatusBadge/constants.js"),require("@babel/runtime/helpers/toConsumableArray"),require("lodash/set"),require("lodash/get"),require("lodash/unset"),require("moment"),require("../../../clients/api/apiCore.js"),require("../../../clients/constants.js"),require("../../../clients/sso/auth0.js"),require("../../../clients/sso/oauth2.js"),require("../../../clients/api/rateLimiter.js"),require("lodash/isEmpty"),require("lodash/sortBy"),require("../../../constants/streamSourceType.js"),require("../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js"),require("../../../componentsV2/AppCommonsProvider/AppCommonsProvider.js");var s=require("../../../componentsV2/AppCommonsProvider/AppCommonsContext.js");require("../../../componentsV2/AppSettings/AppSettingsPinningContext.js");exports.useIsAdmin=function(){var i,t=null===(i=s.useAppCommons())||void 0===i?void 0:i.currentUser,n=r.usePickerPropsStore((function(e){return e.currentUser}));return e.checkIsUserAdmin(null!=t?t:n)};
//# sourceMappingURL=useIsAdmin.js.map
