import React from "react"; import { format } from "date-fns"; import { type MonthCaptionProps, DayPicker, useDayPicker } from "react-day-picker"; function CustomMonthCaption(props: MonthCaptionProps) { const { goToMonth, nextMonth, previousMonth } = useDayPicker(); return ( <>

{format(props.calendarMonth.date, "MMM yyy")}

); } export function CustomCaption() { return ( ); }