@cerberus-design/react
Version:
The Cerberus Design React component library.
15 lines (10 loc) • 479 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const jsxRuntime = require('react/jsx-runtime');
const featureFlags = require('../../context/feature-flags.cjs');
const show = require('../show/show.cjs');
function FeatureFlag(props) {
const showContent = featureFlags.useFeatureFlags(props.flag);
return /* @__PURE__ */ jsxRuntime.jsx(show.Show, { when: showContent, children: props.children });
}
exports.FeatureFlag = FeatureFlag;