function calculateMonthClass(date, currentMonth) {
  const modifier =
    date.toFormat('yyyy-MM') === currentMonth ? 'thisMonth' : 'otherMonth'

  return `rev-Calendar-body-bodyCell--${modifier}`
}
/**
 * A className depending on whether the date is in the focused month or not.
 * @private
 * @param {DateTime} date - the date in question as a Luxon DateTime
 * @param {string} currentMonth the current month as a string formatted yyyy-MM
 * @returns {string} the className
 */
A className depending on whether the date is in the focused month or not.
@private
@param {DateTime} date - the date in question as a Luxon DateTime
@param {string} currentMonth the current month as a string formatted yyyy-MM
@returns {string} the className
A className depending on whether the date is in the focused month or not . @private @param { DateTime } date - the date in question as a Luxon DateTime @param { string } currentMonth the current month as a string formatted yyyy - MM @returns { string } the className
function calculateMonthClass(date, currentMonth) {
  const modifier =
    date.toFormat('yyyy-MM') === currentMonth ? 'thisMonth' : 'otherMonth'
  return `rev-Calendar-body-bodyCell--${modifier}`
}
function calculateMonthClass ( date , currentMonth ) { const modifier = date . toFormat ( 'yyyy-MM' ) === currentMonth ? 'thisMonth' : 'otherMonth' return ` ${ modifier } ` }
A className depending on whether the date is in the focused month or not.
A className depending on whether the date is in the focused month or not .