import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
import React__default from 'react';
import { StyledTimeGrid } from './TimeGrid.styles.js';
import { getSizeValueFromProp } from '../../../../utils/getSizeValueFromProp.js';

var _excluded = ["columns", "calendarContainerWidth", "calendarContainerHeight"];
var TimeGrid = function TimeGrid(_ref) {
  var columns = _ref.columns,
    calendarContainerWidth = _ref.calendarContainerWidth,
    calendarContainerHeight = _ref.calendarContainerHeight,
    rest = _objectWithoutProperties(_ref, _excluded);
  var calendarContainerWidthValue = calendarContainerWidth ? getSizeValueFromProp(calendarContainerWidth, 'rem') : undefined;
  var calendarContainerHeightValue = calendarContainerHeight ? getSizeValueFromProp(calendarContainerHeight, 'rem') : undefined;
  return /*#__PURE__*/React__default.createElement(StyledTimeGrid, _extends({
    columns: columns,
    innerWidth: calendarContainerWidthValue,
    innerHeight: calendarContainerHeightValue
  }, rest));
};

export { TimeGrid };
