import { Button, EmptyState, EmptyStateActions, EmptyStateBody, EmptyStateFooter, EmptyStateProps } from '@patternfly/react-core'; import React from 'react'; export interface HistoryEmptyStateProps extends EmptyStateProps { onClick?: () => void; bodyText?: string | React.ReactNode; buttonText?: string; buttonIcon?: React.ReactNode; hasButton?: boolean; } export const HistoryEmptyState: React.FunctionComponent = ({ bodyText, buttonIcon, buttonText, status, titleText, headingLevel, onClick, hasButton = false, ...props }: HistoryEmptyStateProps) => ( {bodyText} {hasButton && ( )} ); export default HistoryEmptyState;