import React from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import { action } from 'mobx';
import cx from 'classnames';
import range from 'lodash/range';
import chunk from 'lodash/chunk';
import Header from 'grommet/components/Header';
import Button from 'grommet/components/Button';
import Title from 'grommet/components/Title';
import LinkPreviousIcon from 'grommet/components/icons/base/LinkPrevious';
import LinkNextIcon from 'grommet/components/icons/base/LinkNext';
const Day = ({ i, w, d, className, ...props }) => {
const prevMonth = 0 === w && i > 7;
const nextMonth = w >= 4 && i <= 14;
const cls = cx(className, {
'prev-month': prevMonth,
'next-month': nextMonth,
'current-day': !prevMonth && !nextMonth && i === d,
});
return