"use strict";

var _ = _interopRequireDefault(require(".."));

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

var _moment = _interopRequireDefault(require("moment"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function onSelect(value) {
  console.log(value.format('L'));
}

function onVisibleMonthChange(value, reason) {
  console.log('Visible month changed to %s from <%s>', value.format('YYYY-MM'), reason);
}

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_["default"], {
  onSelect: onSelect,
  defaultVisibleMonth: function defaultVisibleMonth() {
    return (0, _moment["default"])('2018-01', 'YYYY-MM', true);
  },
  onVisibleMonthChange: onVisibleMonthChange
}), document.getElementById('calendar-demo-6'));