"use client"; import * as React from "react"; import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/20/solid"; import { format } from "date-fns"; import { DayPicker, useDayPicker } from "react-day-picker"; import { cn } from "~/utils/cn"; export type CalendarProps = React.ComponentProps; const navButtonClass = "size-7 rounded-[3px] bg-secondary border border-border-bright text-text-bright hover:bg-surface-control hover:border-border-brighter transition inline-flex items-center justify-center"; function CustomMonthCaption({ calendarMonth }: { calendarMonth: { date: Date } }) { const { goToMonth, nextMonth, previousMonth } = useDayPicker(); return (
); } export function Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) { return ( ); } Calendar.displayName = "Calendar";