/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ import { EuiFlexItem, EuiFlexGroup, EuiText, EuiLink, EuiTitle, EuiFieldNumber, EuiSpacer, } from '@elastic/eui'; import { Field, FieldProps } from 'formik'; import React, { useState } from 'react'; import ContentPanel from '../../../../components/ContentPanel/ContentPanel'; import { BASE_DOCS_LINK } from '../../../../utils/constants'; import { isInvalid, getError, validatePositiveInteger, } from '../../../../utils/utils'; import { FormattedFormRow } from '../../../../components/FormattedFormRow/FormattedFormRow'; interface AdvancedSettingsProps {} export function AdvancedSettings(props: AdvancedSettingsProps) { const [showAdvancedSettings, setShowAdvancedSettings] = useState(false); return (

Advanced settings

{ setShowAdvancedSettings(!showAdvancedSettings); }} > {showAdvancedSettings ? 'Hide' : 'Show'} } hideBody={!showAdvancedSettings} bodyStyles={{ marginTop: '-16px' }} > {showAdvancedSettings ? : null} {showAdvancedSettings ? ( {({ field, form }: FieldProps) => (

intervals

)}
) : null}
); }