import React from 'react';
import { Dialog, Box, TextBody } from '../..';
export default {
  component: Dialog,
  title: 'Dialog'
};
export var Main = function Main() {
  return /*#__PURE__*/React.createElement(Dialog, {
    active: true,
    onCloseClick: function onCloseClick() {},
    onEscKeyDown: function onEscKeyDown() {},
    onOverlayClick: function onOverlayClick() {},
    primaryAction: {
      label: 'Confirm'
    },
    secondaryAction: {
      label: 'Cancel'
    },
    tertiaryAction: {
      children: 'Read more'
    },
    title: "Dialog title"
  }, /*#__PURE__*/React.createElement(Box, {
    padding: 4
  }, /*#__PURE__*/React.createElement(TextBody, null, "Here you can add arbitrary content.")));
};
Main.parameters = {
  // add a delay to make sure the dialog animation is finished
  chromatic: {
    delay: 300
  }
};