/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React, { ChangeEvent, Component } from "react"; import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiComboBoxOptionOption } from "@elastic/eui"; import { RouteComponentProps } from "react-router-dom"; import { TransformService } from "../../../../services"; import ConfigureTransform from "../../components/ConfigureTransform"; import TransformIndices from "../../components/TransformIndices"; import CreateTransformSteps from "../../components/CreateTransformSteps"; import IndexService from "../../../../services/IndexService"; import { FieldItem, IndexItem } from "../../../../../models/interfaces"; interface SetUpIndicesStepProps extends RouteComponentProps { transformService: TransformService; indexService: IndexService; transformId: string; transformIdError: string; submitError: string; isSubmitting: boolean; hasSubmitted: boolean; description: string; sourceIndex: { label: string; value?: IndexItem }[]; sourceIndexFilter: string; sourceIndexFilterError: string; sourceIndexError: string; targetIndex: { label: string; value?: IndexItem }[]; targetIndexError: string; onChangeName: (e: ChangeEvent) => void; onChangeDescription: (value: ChangeEvent) => void; onChangeSourceIndex: (options: EuiComboBoxOptionOption[]) => void; onChangeSourceIndexFilter: (sourceIndexFilter: string) => void; onChangeTargetIndex: (options: EuiComboBoxOptionOption[]) => void; currentStep: number; hasAggregation: boolean; fields: FieldItem[]; fieldSelectedOption: string; beenWarned: boolean; } export default class SetUpIndicesStep extends Component { render() { if (this.props.currentStep !== 1) { return null; } return (

Set up indices

); } }