"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.PagingPlayground = void 0;var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _react = _interopRequireDefault(require("react"));

var _Paging = require("../../components/Paging");var




PagingPlayground = exports.PagingPlayground = /*#__PURE__*/function (_React$Component) {function PagingPlayground() {var _this;for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;_this.
    state = {
      activePage: 1
    };_this.





    handlePageChange = function (pageNumber) {
      _this.setState({ active: pageNumber });
    };return _this;}(0, _inheritsLoose2.default)(PagingPlayground, _React$Component);var _proto = PagingPlayground.prototype;_proto.render = function render() {return /*#__PURE__*/_react.default.createElement(_Paging.Paging, { activePage: this.state.activePage, onPageChange: this.handlePageChange, pagesCount: 12 });};return PagingPlayground;}(_react.default.Component);