"use strict";

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

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

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

var _styledComponents = _interopRequireDefault(require("styled-components"));

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

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

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

// const Test1 = styled.div``;
// const Test2 = styled.div``;
var props = function props() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      _ref$isTouchDevice = _ref.isTouchDevice,
      isTouchDevice = _ref$isTouchDevice === void 0 ? undefined : _ref$isTouchDevice,
      _ref$callback = _ref.callback,
      callback = _ref$callback === void 0 ? undefined : _ref$callback;

  return {
    isTouchDevice: (0, _addonKnobs.boolean)('is touch device', isTouchDevice) // titles: array('titles', titles),

  };
};

var Test1 = function Test1() {
  return _react.default.createElement("div", null, "Test 1");
};

var Test2 = function Test2() {
  return _react.default.createElement("div", null, "Test 2");
}; // does not work for some reason


(0, _react2.storiesOf)('Web|Tabs', module).add('default', function () {
  return _react.default.createElement(_component.default, _extends({}, props(), {
    titles: ['test1', 'test2']
  }), {
    test1: Test1,
    test2: Test2
  });
});