import React from 'react' ; import { PipelineRuntimeContext , StageRuntimeContext } from '../types' ; import { UnitRun } from '../unit' ; export const UnitsRuntime = ( props ) => { const { pipelineContext , context : stageContext } = props ; return < > { stageContext . units . map ( context => { return < UnitRun pipelineContext = { pipelineContext } stageContext = { stageContext } context = { context } key = { context . unit . unitId } / > ; } ) } < />; } ;