import * as React from "react"; import { ChevronLeft, ChevronRight } from "lucide-react"; import { DayPicker } from "react-day-picker"; import { enUS, Locale, zhCN } from "date-fns/locale"; import { cn } from "@/lib/utils"; import { buttonVariants } from "@/components/ui/button"; import i18n from "@/utils/i18n"; export type CalendarProps = React.ComponentProps; let locale: Locale; switch(i18n.language) { case "zh-CN": locale = zhCN; break; default: locale = enUS; break; } function Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) { return ( , IconRight: () => , }} {...props} /> ); } Calendar.displayName = "Calendar"; export { Calendar };