"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MixinsMarginOnlySpacing = exports.Disabled = exports.Normal = exports["default"] = void 0;

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

var _addonActions = require("@storybook/addon-actions");

var _backButton = require("./back-button.component");

var _marginChecker = require("../../../mixins/spacing/story-support/margin-checker");

var _backButton2 = _interopRequireDefault(require("./back-button.mdx"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var _default = {
  component: _backButton.BackButton,
  title: 'Components/Actions/Back Button',
  parameters: {
    docs: {
      page: _backButton2["default"]
    }
  }
};
exports["default"] = _default;
var DEFAULT_PROPS = {
  ariaLabel: 'Go Back',
  onClick: (0, _addonActions.action)('Clicked')
};

var Normal = function Normal() {
  return /*#__PURE__*/_react["default"].createElement(_backButton.BackButton, DEFAULT_PROPS);
};

exports.Normal = Normal;

var Disabled = function Disabled() {
  return /*#__PURE__*/_react["default"].createElement(_backButton.BackButton, _extends({}, DEFAULT_PROPS, {
    disabled: true
  }));
};

exports.Disabled = Disabled;

var MixinsMarginOnlySpacing = function MixinsMarginOnlySpacing() {
  return /*#__PURE__*/_react["default"].createElement(_marginChecker.MarginChecker, _extends({
    Component: _backButton.BackButton
  }, DEFAULT_PROPS));
};

exports.MixinsMarginOnlySpacing = MixinsMarginOnlySpacing;