"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.SingleReview = exports.MultipleReviews = exports.DefaultReview = exports.CustomActions = void 0;

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

var _Review = _interopRequireDefault(require("./Review"));

var _excluded = ["data"];

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

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var _default = {
  title: 'Patterns/Review',
  component: _Review.default,
  argTypes: {
    headingLevel: {
      control: {
        type: 'select'
      },
      options: ['1', '2', '3', '4', '5', '6'],
      defaultValue: '3'
    }
  }
};
exports.default = _default;

var Template = function Template(_ref) {
  var data = _ref.data,
      args = _objectWithoutProperties(_ref, _excluded);

  return /*#__PURE__*/_react.default.createElement(_Review.default, args);
};

var DefaultReview = Template.bind({});
exports.DefaultReview = DefaultReview;
DefaultReview.args = {
  children: 'This is an example of a default Review component.'
};
var SingleReview = Template.bind({});
exports.SingleReview = SingleReview;
SingleReview.args = {
  heading: 'A single Review component',
  children: 'This is an example of a single Review component.',
  editHref: '#'
};
var MultipleReviews = Template.bind({});
exports.MultipleReviews = MultipleReviews;
MultipleReviews.args = {
  heading: 'Multiple Review components',
  children: 'Multiple Review components can be combined together one after another.',
  editHref: '#'
};
MultipleReviews.decorators = [function (Story) {
  return /*#__PURE__*/_react.default.createElement("div", null, Story(), Story());
}];
var CustomActions = Template.bind({});
exports.CustomActions = CustomActions;
CustomActions.args = {
  heading: 'A Review component with custom actions',
  children: 'You can add custom action links as needed.',
  editContent: /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("a", {
    href: "#"
  }, "Edit"), /*#__PURE__*/_react.default.createElement("span", null, "|"), /*#__PURE__*/_react.default.createElement("a", {
    href: "#"
  }, "Remove"))
};