"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 _index = _interopRequireDefault(require("./index.js"));

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

var stories = (0, _react2.storiesOf)("Pagination (deprecated)", module);
stories.addDecorator(_addonKnobs.withKnobs).addDecorator(function (story) {
  return _react["default"].createElement("div", {
    id: "root-preview"
  }, _react["default"].createElement("p", null, "Please use", _react["default"].createElement("a", {
    href: "/?path=/story/navigation-paginationcontrols-using-buttons-no-href--default"
  }, " ", "PaginationControls", " "), "component instead"), story());
});
stories.add("Default", function () {
  return _react["default"].createElement(_index["default"], {
    currentPage: (0, _addonKnobs.number)("currentPage", 1),
    totalPages: (0, _addonKnobs.number)("totalPages", 10),
    onChange: (0, _addonActions.action)("page changed")
  });
});