alertBadge.stories.js 531 B

1234567891011121314151617181920212223
  1. import AlertBadge from 'sentry/components/alertBadge';
  2. import {IncidentStatus} from 'sentry/views/alerts/types';
  3. export default {
  4. title: 'Components/Alerts/Alert Badge',
  5. component: AlertBadge,
  6. args: {
  7. status: 0,
  8. hideText: false,
  9. isIssue: false,
  10. },
  11. argTypes: {
  12. status: {
  13. control: {
  14. type: 'radio',
  15. options: Object.values(IncidentStatus).filter(Number.isInteger),
  16. labels: IncidentStatus,
  17. },
  18. },
  19. },
  20. };
  21. export const Default = ({...args}) => <AlertBadge {...args} />;