'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var _tslib = require('../../_virtual/_tslib.js');
var React = require('react');
var styles = require('./styles.js');
var index = require('./components/calendarView/index.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

function DateView(_a) {
    var { variant = 'calendar', date, minDate, maxDate, locale, startingDay } = _a, rest = _tslib.__rest(_a, ["variant", "date", "minDate", "maxDate", "locale", "startingDay"]);
    const renderVariant = (mVariant) => ({
        calendar: (React__default['default'].createElement(index.CalendarView, { date: date, minDate: minDate, maxDate: maxDate, locale: locale, startingDay: startingDay })),
    }[mVariant]);
    return React__default['default'].createElement(styles.Wrapper, Object.assign({}, rest), renderVariant(variant));
}

exports.DateView = DateView;
