"use strict";

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

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

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

var _utils = require("../../storybook/utils");

var _component = _interopRequireDefault(require("./component"));

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$isTouchDevice = _ref.isTouchDevice,
      isTouchDevice = _ref$isTouchDevice === void 0 ? false : _ref$isTouchDevice,
      _ref$title = _ref.title,
      title = _ref$title === void 0 ? 'title' : _ref$title,
      _ref$children = _ref.children,
      children = _ref$children === void 0 ? 'child component' : _ref$children,
      _ref$asyncStatus = _ref.asyncStatus,
      asyncStatus = _ref$asyncStatus === void 0 ? undefined : _ref$asyncStatus,
      _ref$asyncStatusList = _ref.asyncStatusList,
      asyncStatusList = _ref$asyncStatusList === void 0 ? undefined : _ref$asyncStatusList;

  return {
    isTouchDevice: (0, _addonKnobs.boolean)('isTouchDevice', isTouchDevice),
    title: (0, _addonKnobs.text)('title', title),
    children: (0, _addonKnobs.text)('children', children),
    asyncStatus: (0, _addonKnobs.select)('async status', (0, _utils.asyncStates)({
      isList: false
    }), asyncStatus),
    asyncStatusList: (0, _addonKnobs.select)('async status list', (0, _utils.asyncStates)({
      isList: true
    }), asyncStatusList)
  };
};

(0, _react2.storiesOf)('Web|Pane', module).add('default', function () {
  return _react.default.createElement(_component.default, props());
});