"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "boundCalendar", {
    enumerable: true,
    get: function() {
        return boundCalendar;
    }
});
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
require("focus-visible");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
var boundCalendar = function boundCalendar(param) {
    var CalendarBase = param.base, CalendarDouble = param.double, CalendarBaseRange = param.baseRange, CalendarDoubleRange = param.doubleRange;
    return function(rest) {
        if (!rest.isRange && !rest.isDouble) {
            return /*#__PURE__*/ _react.default.createElement(CalendarBase, rest);
        }
        if (!rest.isRange && rest.isDouble) {
            return /*#__PURE__*/ _react.default.createElement(CalendarDouble, rest);
        }
        if (rest.isRange && !rest.isDouble) {
            return /*#__PURE__*/ _react.default.createElement(CalendarBaseRange, rest);
        }
        if (rest.isRange && rest.isDouble) {
            return /*#__PURE__*/ _react.default.createElement(CalendarDoubleRange, rest);
        }
        return null;
    };
};
