/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { EuiSpacer, EuiText, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import React, { useState } from 'react';
import { AddVisualizationPopover } from '../helpers/add_visualization_popover';
/*
* EmptyPanelView - This Sub-component is shown to the user when a Observability Dashboard is empty
*
* Props taken in as params are:
* addVizDisabled -> Boolean to enable/disable the add visualization button
* getVizContextPanels -> Function to populate the add visualization popover
*/
interface EmptyPanelViewProps {
addButton?: any;
addVizDisabled: boolean;
showFlyout: (isReplacement?: boolean, replaceVizId?: string) => void;
}
export const EmptyPanelView = ({
addVizDisabled,
showFlyout,
addButton =