import { ParameterKind , ValueTypes } from '@/services/data/tuples/factor-calculator-types' ; import { FromFactor , ToFactor } from '@/services/data/tuples/pipeline-stage-unit-action/pipeline-stage-unit-action-types' ; import { Topic } from '@/services/data/tuples/topic-types' ; import { ParameterEventBusProvider } from '@/widgets/parameter/parameter-event-bus' ; import React from 'react' ; import { TopicFactorEditor } from '../../parameter/topic-factor' ; import { Parameter2ActionBridge } from './parameter-2-action-bridge' ; import { TopicFactorFinderContainer } from './widgets' ; export const TopicFactorPicker = ( props ) => { const { action , topics , expectedTypes } = props ; const { topicId , factorId } = action ; const parameter = { kind : ParameterKind . TOPIC , topicId , factorId } ; return < ParameterEventBusProvider > < Parameter2ActionBridge action = { action } /> < TopicFactorFinderContainer > < TopicFactorEditor parameter = { parameter } topics = { topics } expectedTypes = { expectedTypes } / > < /TopicFactorFinderContainer> < /ParameterEventBusProvider>; } ;