import * as React from 'react'; import { Duration } from '~/shared/components/duration'; import { ColoredStatusIcon } from '../../../../topology/StatusIcon'; import { StepStatus } from '../types'; type PipelineRunNodeTooltipProps = { label: string; description?: string; steps?: StepStatus[]; }; const PipelineRunNodeTooltip: React.FunctionComponent< React.PropsWithChildren > = ({ label, steps }) => (
{label}
{steps?.map((step) => (
{step.name}
))}
); export default PipelineRunNodeTooltip;