UNPKG

@flatbiz/antd

Version:
19 lines (15 loc) 510 B
/*! @flatjs/forge MIT @flatbiz/antd */ import { Fragment } from 'react'; import { f as fbaUtils } from './fba-utils-Dfbczn1S.js'; import { jsx } from 'react/jsx-runtime'; var Permission = function Permission(props) { var permissionList = fbaUtils.getPermissionList(); if (!props.name || permissionList.includes(props.name)) { return /*#__PURE__*/jsx(Fragment, { children: props.children }); } return null; }; export { Permission as P }; //# sourceMappingURL=permission-BXFgP5jk.js.map