import { HelpExecution , isHelpExecution } from '../widgets/cli/execution/help' ; import { ExecutionContent } from '../widgets/cli/types' ; import { FlowExecution , isFlowExecution } from './flow' ; import { GraphExecution , isGraphExecution } from './graph' ; import { isPipelineExecution , PipelineExecution } from './pipeline' ; import { isTopicExecution , TopicExecution } from './topic' ; export const Execution = ( props ) => { const { content } = props ; return < > { isPipelineExecution ( content ) ? < PipelineExecution content = { content } / > : null } { isTopicExecution ( content ) ? < TopicExecution content = { content } /> : null} { isFlowExecution ( content ) ? < FlowExecution content = { content } /> : null} { isGraphExecution ( content ) ? < GraphExecution content = { content } /> : null} { isHelpExecution ( content ) ? < HelpExecution content = { content } /> : null} < />; } ;