/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import { EuiInMemoryTable, EuiIcon, EuiFlyoutHeader, EuiTitle } from "@elastic/eui"; import React from "react"; import { Column } from "../../../../models/interfaces"; import { IndexItem } from "../../../../models/interfaces" interface IndexListProps { indices: IndexItem[]; snapshot: string; title: string columns: Column[]; onClick: (e: React.MouseEvent) => void; } const IndexList = ({ indices, snapshot, onClick, title, columns }: IndexListProps) => { indices = indices.filter((index) => index.index.substring(0, 7) !== ".kibana"); return ( <>

{" "} {title} {snapshot} ({indices.length})

); }; export default IndexList;