"use client" import * as React from "react" import { DayPicker } from "react-day-picker" import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react" import { cn } from "@/lib/utils" export type CalendarProps = React.ComponentProps function Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) { return ( { const { orientation, ...rest } = props if (orientation === "up" || orientation === "down") { return } const Icon = orientation === "left" ? ChevronLeftIcon : ChevronRightIcon return }, Select: (props) => { const { className, children, ...rest } = props return ( ) }, }} {...props} /> ) } Calendar.displayName = "Calendar" export { Calendar }