import { Label } from '@patternfly/react-core'; import { ComponentGroupKind } from '~/types'; type Props = { group: ComponentGroupKind; }; const ComponentGroupPromotionStatus: React.FC = ({ group }) => { const candidateList = group.status?.globalCandidateList ?? []; const promoted = candidateList.filter((c) => c.lastPromotedImage).length; const total = candidateList.length; if (total === 0) { return -; } const allPromoted = promoted === total; return ( ); }; export default ComponentGroupPromotionStatus;