"use strict";

exports.__esModule = true;
exports.BlogPagination = exports.default = void 0;

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

var _LinkTo = require("../LinkTo");

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

var BlogPagination = function BlogPagination(_ref) {
  var previous = _ref.previous,
      next = _ref.next;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: "pagination"
  }, /*#__PURE__*/_react.default.createElement("div", {
    className: "inner"
  }, previous && /*#__PURE__*/_react.default.createElement(_LinkTo.LinkTo, {
    type: "route",
    className: "pagination-button pagination-back-button",
    url: previous
  }, "Older"), next && /*#__PURE__*/_react.default.createElement(_LinkTo.LinkTo, {
    type: "route",
    className: "pagination-button pagination-back-button",
    url: next
  }, "Newer")));
};

var _default = BlogPagination;
exports.default = _default;
BlogPagination.displayName = 'BlogPagination';
var BlogPaginationDoc;

if (process.env.NODE_ENV !== 'production') {
  // eslint-disable-next-line global-require
  BlogPaginationDoc = require('./doc').doc(BlogPagination);
}

var BlogPaginationWrapper = BlogPaginationDoc || BlogPagination;
exports.BlogPagination = BlogPaginationWrapper;