/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React, { useContext, useRef } from "react"; import { EuiFormRow, EuiLink, EuiSpacer, EuiTitle } from "@elastic/eui"; import { CoreStart } from "opensearch-dashboards/public"; import { SubDetailProps } from "../../interface"; import IndexMapping, { IIndexMappingsRef } from "../../../../components/IndexMapping"; import { CoreServicesContext } from "../../../../components/core_services"; export default function TemplateMappings(props: SubDetailProps) { const { field, isEdit } = props; const mappingsRef = useRef(null); const coreServices = useContext(CoreServicesContext) as CoreStart; return ( <>
Index mapping
} helpText={
Define how documents and their fields are stored and indexed.{" "} Learn more
} > <> ); }