import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
import React__default from 'react';
import { StyledCalendarDouble, StyledCalendar } from './CalendarGrid.styles.js';

var _excluded = ["isDouble", "value", "lang", "calendarContainerWidth", "calendarContainerHeight", "handleCalendarPick"];
var CalendarGrid = function CalendarGrid(_ref) {
  var isDouble = _ref.isDouble,
    value = _ref.value,
    lang = _ref.lang,
    calendarContainerWidth = _ref.calendarContainerWidth,
    calendarContainerHeight = _ref.calendarContainerHeight,
    handleCalendarPick = _ref.handleCalendarPick,
    rest = _objectWithoutProperties(_ref, _excluded);
  var commonProps = {
    value: value,
    locale: lang,
    innerHeight: calendarContainerHeight,
    innerWidth: calendarContainerWidth,
    onChangeValue: handleCalendarPick
  };
  if (isDouble) {
    return /*#__PURE__*/React__default.createElement(StyledCalendarDouble, _extends({}, commonProps, rest));
  }
  return /*#__PURE__*/React__default.createElement(StyledCalendar, _extends({}, commonProps, rest));
};

export { CalendarGrid };
