import React from 'react' ; import { ActionRun } from '../../action' ; import { InternalUnitRuntimeContext , PipelineRuntimeContext , StageRuntimeContext , UnitRuntimeContext } from '../../types' ; export const ActionsRuntime = ( props ) => { const { pipelineContext , stageContext , unitContext , context : internalUnitContext } = props ; return < > { internalUnitContext . actions . map ( context => { return < ActionRun pipelineContext = { pipelineContext } stageContext = { stageContext } unitContext = { unitContext } internalUnitContext = { internalUnitContext } context = { context } key = { context . action . actionId } / > ; } ) } < />; } ;