import * as React from 'react'; import { Tooltip } from '@patternfly/react-core'; import { css } from '@patternfly/react-styles'; import RelationIcon from '../../../assets/RelationsIcon.svg'; import { ComponentKind } from '../../../types'; import './ComponentRelationStatusIcon.scss'; export const ComponentRelationStatusIcon: React.FC<{ component: ComponentKind; className?: string; style?: { [key: string]: unknown }; }> = ({ component, className, style }) => { const isInRelationship = !!( component.spec?.['build-nudges-ref']?.length ?? component.status?.['build-nudged-by']?.length ); return isInRelationship ? ( ) : null; };