'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

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

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

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

var _index2 = _interopRequireDefault(_index);

var _Pagination = require('./Pagination.md');

var _Pagination2 = _interopRequireDefault(_Pagination);

var _PaginationKnobs = require('./Pagination.knobs.options');

var _PaginationKnobs2 = _interopRequireDefault(_PaginationKnobs);

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

(0, _react3.storiesOf)('molecules', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('Pagination', function () {
  var props = {
    next: {
      disabled: (0, _addonKnobs.boolean)('Pagination next: disabled', false, 'Next'),
      text: (0, _addonKnobs.text)('Pagination next: text', 'Next', 'Next'),
      hide: (0, _addonKnobs.boolean)('Pagination next: hide', false, 'Next'),
      onClick: (0, _addonActions.action)('Next Clicked.')
    },
    prev: {
      disabled: (0, _addonKnobs.boolean)('Pagination prev: disabled', false, 'Previous'),
      text: (0, _addonKnobs.text)('Pagination prev: text', 'Previous', 'Previous'),
      hide: (0, _addonKnobs.boolean)('Pagination prev: hide', false, 'Previous'),
      onClick: (0, _addonActions.action)('Previous Clicked.')
    },
    pages: (0, _addonKnobs.object)('Pagination pages', _PaginationKnobs2.default.pages)
  };
  return _react2.default.createElement(_index2.default, props);
}, { info: _Pagination2.default });