UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

21 lines (20 loc) 619 B
import { getAccessRequirementStatus as a } from "../../synapse-client/SynapseClient.js"; import { useTheme as i, useMediaQuery as m } from "@mui/material"; import { sortBy as c } from "lodash-es"; const f = async (e, t) => { const r = t.map((s) => a(e, s)), n = await Promise.all(r); return c(t, (s) => -1 * Number( n.find( (o) => s === o.accessRequirementId ).isApproved )); }; function h() { const e = i(); return m(e.breakpoints.up("md")); } export { f as sortAccessRequirementsByCompletion, h as useCanShowManagedACTWikiInWizard }; //# sourceMappingURL=AccessRequirementListUtils.js.map