"use client"; import * as React from "react"; import { ChevronLeft, ChevronRight } from "lucide-react"; import { DayPicker } from "react-day-picker"; import { cn } from "@/lib/utils"; import { buttonVariants } from "@/components/ui/button"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; export type CalendarProps = React.ComponentProps; function Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) { return ( , IconRight: ({ ...props }) => , Dropdown: ({ children, value, onChange, ...props }) => { const options = React.Children.toArray(children) as React.ReactElement< React.HTMLProps >[]; const selected = options.find((child) => child.props.value === value); const handleChange = (value: string) => { const changeEvent = { target: { value }, } as React.ChangeEvent; onChange?.(changeEvent); }; return ( ); }, }} {...props} /> ); } Calendar.displayName = "Calendar"; export { Calendar };