'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _react3 = require('@storybook/react');

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

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

var _index2 = _interopRequireDefault(_index);

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

var startTime = new Date('March 15, 2002 03:00:00');
var endTime = new Date('March 15, 2002 12:00:00');

(0, _react3.storiesOf)('atoms/contact', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('EventTime', function () {
  var props = {
    startDate: (0, _addonKnobs.date)('startDate', startTime),
    endDate: (0, _addonKnobs.date)('endDate', endTime),
    details: (0, _addonKnobs.text)('details', 'First come first serve.')
  };
  return _react2.default.createElement(_index2.default, props);
});