/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { EuiLink, EuiSpacer } from "@elastic/eui"; import { SubDetailProps } from "../../interface"; import { ContentPanel } from "../../../../components/ContentPanel"; import DescriptionListHoz from "../../../../components/DescriptionListHoz"; import { ROUTES } from "../../../../utils/constants"; import { TemplateConvert } from "../TemplateType"; import { TemplateItem } from "../../../../../models/interfaces"; export default function OverviewTemplate(props: SubDetailProps) { const { field, withoutPanel, columns } = props; const values: TemplateItem = field.getValues(); const content = ( <> (
{item}
)) : "-", }, ]} /> ); return withoutPanel ? ( content ) : ( {content} ); }