import moment from "moment";
import { type DateLocalizer, momentLocalizer } from "react-big-calendar";

/**
 * The one moment-based localizer the calendar uses.
 *
 * react-big-calendar wants a stable instance, and the screen's formats are
 * built in `useCalendar` while the grid itself is rendered in `Calendar`, so it
 * lives here rather than in either of them.
 */
export const localizer: DateLocalizer = momentLocalizer(moment);
