import { XIcon } from "lucide-react" import { cn } from "@/lib/utils" export interface TimeRangeValue { from: string to: string } /** Диапазон времени «с–по» в одну строку; подсвечивается, если «по» раньше «с». */ export function TimeRangeInput({ value, onChange, onRemove, className, }: { value: TimeRangeValue onChange: (value: TimeRangeValue) => void onRemove?: () => void className?: string }) { const invalid = Boolean(value.from && value.to && value.to <= value.from) const input = "h-7 w-[4.6rem] rounded-md bg-transparent px-1 font-mono text-xs tabular outline-none focus:bg-accent/60 [&::-webkit-calendar-picker-indicator]:hidden" return (