import React from 'react'; import PropTypes from 'prop-types'; import { getMonthStart, getMonthEnd } from '@wojtekmaj/date-utils'; import Tile from '../Tile'; import { formatMonth as defaultFormatMonth, formatMonthYear as defaultFormatMonthYear, } from '../shared/dateFormatter'; import { tileProps } from '../shared/propTypes'; const className = 'react-calendar__year-view__months__month'; export default function Month({ classes, formatMonth = defaultFormatMonth, formatMonthYear = defaultFormatMonthYear, ...otherProps }) { const { date, locale } = otherProps; return ( {formatMonth(locale, date)} ); } Month.propTypes = { ...tileProps, formatMonth: PropTypes.func, formatMonthYear: PropTypes.func, };