"use strict";

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

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

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

var _button = require("./button.component");

var _button2 = _interopRequireDefault(require("./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: _button.Button,
  title: 'Buttons/Primary',
  parameters: {
    fileName: __filename,
    docs: {
      page: _button2["default"]
    }
  }
};
exports["default"] = _default;
var DEFAULT_PROPS_CLICK = {
  onClick: (0, _addonActions.action)('clicked')
};
var DEFAULT_PROPS_HREF = {
  href: 'https://google.com'
};

var Sm = function Sm() {
  return /*#__PURE__*/_react["default"].createElement(_button.Button, _extends({}, DEFAULT_PROPS_CLICK, {
    size: "sm"
  }), "Click me");
};

exports.Sm = Sm;

var Md = function Md() {
  return /*#__PURE__*/_react["default"].createElement(_button.Button, _extends({}, DEFAULT_PROPS_CLICK, {
    size: "md"
  }), "Click me");
};

exports.Md = Md;

var Disabled = function Disabled() {
  return /*#__PURE__*/_react["default"].createElement(_button.Button, _extends({}, DEFAULT_PROPS_HREF, {
    size: "md",
    disabled: true
  }), "Go to Google");
};

exports.Disabled = Disabled;

var AsLink = function AsLink() {
  return /*#__PURE__*/_react["default"].createElement(_button.Button, _extends({}, DEFAULT_PROPS_HREF, {
    size: "md"
  }), "Go to Google");
};

exports.AsLink = AsLink;