import { PipelineStage } from '@/services/data/tuples/pipeline-stage-types' ; import { PipelineStageUnitAction } from '@/services/data/tuples/pipeline-stage-unit-action/pipeline-stage-unit-action-types' ; import { isMergeRowAction } from '@/services/data/tuples/pipeline-stage-unit-action/pipeline-stage-unit-action-utils' ; import { PipelineStageUnit } from '@/services/data/tuples/pipeline-stage-unit-types' ; import { Pipeline } from '@/services/data/tuples/pipeline-types' ; import { Topic } from '@/services/data/tuples/topic-types' ; import React from 'react' ; import { useActionType } from '../action-effect/use-action-type' ; import { FactorsMapping } from '../factors-mapping' ; import { FindByCondition } from '../find-by' ; import { TopicPicker } from '../topic-picker' ; import { ActionLeadLabelThin } from '../widgets' ; export const MergeRow = ( props ) => { const { action , topics , triggerTopic } = props ; useActionType ( action ) ; if ( ! isMergeRowAction ( action ) ) { return null ; } return < > < ActionLeadLabelThin > Target Topic : < /ActionLeadLabelThin> < TopicPicker action = { action } topics = { topics } / > < ActionLeadLabelThin > Use Mapping : < /ActionLeadLabelThin> < FactorsMapping action = { action } topics = { topics } topic = { triggerTopic } / > < ActionLeadLabelThin > By : < /ActionLeadLabelThin> < FindByCondition action = { action } topics = { topics } topic = { triggerTopic } / > < />; } ;