function dayClickHandler(isSelectable, date, dateChanger) {
  const selectable = isSelectable(date)

  if (selectable) {
    return (event) => {
      event.preventDefault()
      dateChanger(date.toISODate())
    }
  }
  return null
}
/**
 * Handles clicks onto the cell. If the cell is selectable, invoke the
 * dateChanger that was passed in. If not, do nothing.
 * @private
 * @param {Function} isSelectable returns true if the date is selectable
 * @param {DateTime} date the date in question
 * @param {Function} dateChanger the handler to invoke if the cell is selectable
 * @return {(Function| null)} - if the cell is selectable, invoke the
 * dateChanger that was passed in. If not, do nothing
 */
Handles clicks onto the cell. If the cell is selectable, invoke the
dateChanger that was passed in. If not, do nothing.
Handles clicks onto the cell . If the cell is selectable invoke the dateChanger that was passed in . If not do nothing .
function dayClickHandler(isSelectable, date, dateChanger) {
  const selectable = isSelectable(date)
  if (selectable) {
    return (event) => {
      event.preventDefault()
      dateChanger(date.toISODate())
    }
  }
  return null
}
function dayClickHandler ( isSelectable , date , dateChanger ) { const selectable = isSelectable ( date ) if ( selectable ) { return ( event ) => { event . preventDefault ( ) dateChanger ( date . toISODate ( ) ) } } return null }
Handles clicks onto the cell.
Handles clicks onto the cell .