var _excluded = ["data"];

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; }

import React from 'react';
import Review from './Review';
export default {
  title: 'Patterns/Review',
  component: Review,
  argTypes: {
    headingLevel: {
      control: {
        type: 'select'
      },
      options: ['1', '2', '3', '4', '5', '6'],
      defaultValue: '3'
    }
  }
};

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

  return /*#__PURE__*/React.createElement(Review, args);
};

export var DefaultReview = Template.bind({});
DefaultReview.args = {
  children: 'This is an example of a default Review component.'
};
export var SingleReview = Template.bind({});
SingleReview.args = {
  heading: 'A single Review component',
  children: 'This is an example of a single Review component.',
  editHref: '#'
};
export var MultipleReviews = Template.bind({});
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.createElement("div", null, Story(), Story());
}];
export var CustomActions = Template.bind({});
CustomActions.args = {
  heading: 'A Review component with custom actions',
  children: 'You can add custom action links as needed.',
  editContent: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
    href: "#"
  }, "Edit"), /*#__PURE__*/React.createElement("span", null, "|"), /*#__PURE__*/React.createElement("a", {
    href: "#"
  }, "Remove"))
};