"use strict";

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

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

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

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

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$isHidden = _ref.isHidden,
      isHidden = _ref$isHidden === void 0 ? undefined : _ref$isHidden,
      _ref$children = _ref.children,
      children = _ref$children === void 0 ? undefined : _ref$children,
      _ref$onClick = _ref.onClick,
      onClick = _ref$onClick === void 0 ? undefined : _ref$onClick;

  return {
    isHidden: (0, _addonKnobs.boolean)('isHidden', isHidden),
    children: (0, _addonKnobs.text)('children', children),
    onClick: (0, _addonKnobs.button)('onClick', (0, _addonActions.action)('clicked', onClick))
  };
};

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