import * as React from 'react'; import { Button } from '@patternfly/react-core/dist/dynamic/components/Button'; import { EmptyState as EmptyStatePf, EmptyStateBody, EmptyStateIcon, EmptyStateVariant } from '@patternfly/react-core/dist/dynamic/components/EmptyState'; import { Title } from '@patternfly/react-core/dist/dynamic/components/Title'; import { global_spacer_3xl } from '@patternfly/react-tokens'; import { style } from 'typestyle'; import { calc } from 'csx'; import { OuiaComponentProps } from '../../utils'; import { getOuiaProps } from '../../utils/Ouia'; const emptyStateClassName = style({ paddingTop: calc(`${ global_spacer_3xl.var } - var(--pf-c-page__main-section--PaddingTop)`) }); export interface EmptyStateSectionProps extends OuiaComponentProps { icon?: React.ComponentType; iconColor?: string; title: string; content: React.ReactNode; action?: () => void; actionNode?: React.ReactNode; actionLabel?: string; className?: string; } export const EmptyState: React.FunctionComponent = (props) => (
{ props.icon && } { props.title } { props.content } { props.actionNode } { props.actionLabel && ( ) }
);