import { PropsWithChildren } from 'react'; import clsx from 'clsx'; import { Briefcase } from 'react-feather'; import './BEFeatureIndicator.css'; import { FeatureId } from '@/portainer/feature-flags/enums'; import { getFeatureDetails } from './utils'; export interface Props { featureId?: FeatureId; showIcon?: boolean; className?: string; } export function BEFeatureIndicator({ featureId, children, showIcon = true, className = '', }: PropsWithChildren) { const { url, limitedToBE } = getFeatureDetails(featureId); if (!limitedToBE) { return null; } return ( {children} {showIcon && } Business Edition Feature ); }