import React from 'react';
import Alert from './Alert';
export default {
  component: Alert,
  title: 'Alert'
};
export var Main = function Main() {
  return /*#__PURE__*/React.createElement(Alert, {
    active: true,
    primaryAction: {
      label: 'Confirm',
      onClick: function onClick() {
        return console.log('primaryAction.onClick');
      }
    },
    secondaryAction: {
      label: 'Cancel',
      onClick: function onClick() {
        return console.log('secondaryAction.onClick');
      }
    },
    title: "Alert title",
    body: "I am the alert body text"
  });
};
Main.parameters = {
  // add a delay to make sure the dialog animation is finished
  chromatic: {
    delay: 300
  }
};