import type { HTMLAttributes } from "react";
import { cn } from "@/lib/utils";
export type CalendarDateRange = {
from?: Date;
to?: Date;
};
type CalendarBaseProps = Omit, "onSelect">;
type CalendarSingleProps = CalendarBaseProps & {
mode: "single";
selected?: Date;
onSelect?: (date: Date | undefined) => void;
};
type CalendarRangeProps = CalendarBaseProps & {
mode: "range";
selected?: CalendarDateRange;
onSelect?: (range: CalendarDateRange | undefined) => void;
};
export type CalendarProps = CalendarSingleProps | CalendarRangeProps;
export function Calendar({ className, ...props }: CalendarProps) {
return ;
}