import * as React from "react" import { CalendarDaysIcon } from "lucide-react" import { InputDecorator } from "./decorator" import { createInputChangeHandler, getInputValue } from "./value" export type DateInputProps = Omit< React.ComponentProps, "type" | "value" | "onChange" > & { value?: string | null onChange?: React.ChangeEventHandler onValueChange?: (value: string) => void showIcon?: boolean icon?: React.ReactNode } const DateInput = React.forwardRef( ({ value, onChange, onValueChange, showIcon = true, icon, leading, ...props }, ref) => { const handleChange = createInputChangeHandler({ onChange, onValueChange }) return ( : leading} onChange={handleChange} {...props} /> ) } ) DateInput.displayName = "DateInput" export { DateInput }