/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React, { MouseEventHandler } from 'react'; import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from '@elastic/eui'; import { EuiButtonPropsForButton } from '@elastic/eui/src/components/button/button'; interface GetStartedStepButton { text: string; opts?: EuiButtonPropsForButton; onClick: MouseEventHandler; } interface GetStartedStepProps { buttons: Array; title: string; } export const GetStartedStep: React.FC = ({ buttons, title }) => { return (

{title}

{buttons.map((btn: GetStartedStepButton, index: number) => ( {btn.text} ))}
); };