'use strict';

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

var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabelHelpers.js');
var React = require('react');
var TimeGrid_styles = require('./TimeGrid.styles.js');
var getSizeValueFromProp = require('../../../../utils/getSizeValueFromProp.js');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

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

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

exports.TimeGrid = TimeGrid;
