/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import CreateIndex, { IndexFormProps, IndexForm } from "../../../CreateIndex/containers/IndexForm"; import { CoreServicesContext } from "../../../../components/core_services"; import { EuiFlyout, EuiFlyoutBody, EuiFlyoutFooter, EuiFlyoutHeader, EuiTitle } from "@elastic/eui"; import FlyoutFooter from "../../../VisualCreatePolicy/components/FlyoutFooter"; interface CreateIndexFlyoutProps extends IndexFormProps { sourceIndices: string[]; onCloseFlyout: () => void; } export default class CreateIndexFlyout extends React.Component { static contextType = CoreServicesContext; createIndexRef: IndexForm | null = null; render() { const { onCloseFlyout } = this.props; return ( {}} hideCloseButton>

Create Index

(this.createIndexRef = ref)} hideButtons={true} {...this.props} /> this.createIndexRef?.onSubmit()} />
); } }