"use strict";

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

var _react2 = require("@storybook/react");

var _addonKnobs = require("@storybook/addon-knobs");

var _index = require("../index");

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

var props = function props() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      _ref$isOpenByDefault = _ref.isOpenByDefault,
      isOpenByDefault = _ref$isOpenByDefault === void 0 ? undefined : _ref$isOpenByDefault,
      _ref$isRight = _ref.isRight,
      isRight = _ref$isRight === void 0 ? undefined : _ref$isRight,
      _ref$toggleIcon = _ref.toggleIcon,
      toggleIcon = _ref$toggleIcon === void 0 ? undefined : _ref$toggleIcon,
      _ref$children = _ref.children,
      children = _ref$children === void 0 ? undefined : _ref$children;

  return {
    isOpenByDefault: (0, _addonKnobs.boolean)('isOpenByDefault', isOpenByDefault),
    isRight: (0, _addonKnobs.boolean)('isRight', isRight),
    toggleIcon: (0, _addonKnobs.text)('toggleIcon', toggleIcon),
    // onToggle
    children: (0, _addonKnobs.text)('children', children)
  };
};

(0, _react2.storiesOf)('Web|page').add('PageSidePane', function () {
  return _react.default.createElement(_index.PageSidePane, props());
});