"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.NavBarElement = void 0;
var _react = _interopRequireWildcard(require("react"));
var _Styles = require("./Styles");
var _Icons = require("../Icons");
var _ArrowLeft = _interopRequireDefault(require("../Icons/collection/ArrowLeft"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
var NavBarElement = exports.NavBarElement = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
  var onPreviousClick = _ref.onPreviousClick,
    onNextClick = _ref.onNextClick;
  var onPrevious = (0, _react.useCallback)(function () {
    onPreviousClick();
  }, [onPreviousClick]);
  var onNext = (0, _react.useCallback)(function () {
    onNextClick();
  }, [onNextClick]);
  return /*#__PURE__*/_react.default.createElement("div", {
    className: "c-DayPicker-NavBar",
    ref: ref,
    tabIndex: 0
  }, /*#__PURE__*/_react.default.createElement(_Styles.StyledNavBarButton, {
    type: "button",
    variant: "text gray",
    size: "small",
    tabIndex: 0,
    onClick: onPrevious,
    $direction: "previous"
  }, /*#__PURE__*/_react.default.createElement(_ArrowLeft.default, {
    "aria-label": "Previous Month",
    width: "24",
    height: "24"
  })), /*#__PURE__*/_react.default.createElement(_Styles.StyledNavBarButton, {
    type: "button",
    variant: "text gray",
    size: "small",
    tabIndex: 0,
    onClick: onNext,
    $direction: "next"
  }, /*#__PURE__*/_react.default.createElement(_Icons.ArrowRightIcon, {
    "aria-label": "Next Month",
    width: "24",
    height: "24"
  })));
});
NavBarElement.displayName = "NavBarElement";
//# sourceMappingURL=NavBarElement.js.map