export const ColorInput = ({ id, label, value, onChange, }: { id: string; label: string; description?: string; placeholder?: string; value?: string; onChange: (value: string) => void; }) => { const colorRef = useRef(null); const textRef = useRef(null); const handleInputClick = () => { colorRef?.current?.click(); }; return ( <>
onChange(e.target.value)} onFocus={() => { textRef?.current?.focus(); textRef?.current?.click(); }} /> onChange(e.target.value)} />
); };