import { FunctionComponent } from 'react';
import { IconStatus, Status, StatusVariant } from '@patternfly/react-component-groups/dist/dynamic/Status';
import { BanIcon } from '@patternfly/react-icons/';
import { Button, ButtonSize, ButtonVariant } from '@patternfly/react-core';

export const BasicExample: FunctionComponent = () => (
  <Status
    variant={StatusVariant.popover}
    status={IconStatus.danger}
    label="Not Ready"
    icon={<BanIcon />}
    popoverProps={{
      bodyContent: 'Example state description',
      footerContent: (
        <Button size={ButtonSize.sm} variant={ButtonVariant.link} isInline>
          Action
        </Button>
      )
    }}
  />
);
