import React from 'react'; import type { IPipeline } from '../../domain'; import { ValidationMessage } from '../../presentation'; import { SpelText } from '../../widgets'; export interface IMapPair { key: string; value: string; error?: string; } export const MapPair = (props: { keyLabel: string; valueLabel: string; labelsLeft: boolean; pair: IMapPair; onChange: (pair: IMapPair) => void; onDelete: () => void; valueCanContainSpel?: boolean; pipeline?: IPipeline; }) => { const { keyLabel, labelsLeft, pair, onChange, onDelete, valueLabel, valueCanContainSpel, pipeline } = props; return ( <>