import React from 'react'; import PropTypes from 'prop-types'; import { getDate, getDayStart, getDayEnd } from '@wojtekmaj/date-utils'; import Tile from '../Tile'; import { isWeekend } from '../shared/dates'; import { formatLongDate as defaultFormatLongDate } from '../shared/dateFormatter'; import { tileProps } from '../shared/propTypes'; const className = 'react-calendar__month-view__days__day'; export default function Day({ formatLongDate = defaultFormatLongDate, calendarType, classes, currentMonthIndex, ...otherProps }) { const { date } = otherProps; return ( {getDate(date)} ); } Day.propTypes = { ...tileProps, currentMonthIndex: PropTypes.number.isRequired, formatLongDate: PropTypes.func, };