"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.Main = void 0;

var _react = _interopRequireDefault(require("react"));

var _Alert = _interopRequireDefault(require("./Alert"));

var _default = {
  component: _Alert.default,
  title: 'Alert'
};
exports.default = _default;

var Main = function Main() {
  return /*#__PURE__*/_react.default.createElement(_Alert.default, {
    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"
  });
};

exports.Main = Main;
Main.parameters = {
  // add a delay to make sure the dialog animation is finished
  chromatic: {
    delay: 300
  }
};