@cerberus-design/react
Version:
The Cerberus Design React component library.
11 lines (8 loc) • 341 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import { useFeatureFlags } from '../../context/feature-flags.js';
import { Show } from '../show/show.js';
function FeatureFlag(props) {
const showContent = useFeatureFlags(props.flag);
return /* @__PURE__ */ jsx(Show, { when: showContent, children: props.children });
}
export { FeatureFlag };