/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; interface ContentPanelActionsProps { actions: { component: React.ReactNode; flexItemProps?: object; }[]; } const ContentPanelActions: React.SFC = ({ actions, }) => ( {actions.map(({ component, flexItemProps = {} }, index) => { return ( {component} ); })} ); export default ContentPanelActions;