import React from 'react' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' interface TextInputProps { id: string label: string value: string | number | undefined onChange: (value: string | undefined) => void placeholder?: string description?: string disabled?: boolean className?: string } const TextInput: React.FC = ({ id, label, value, onChange, placeholder, description, disabled = false, className }) => { return (
onChange(e.target.value || undefined)} placeholder={placeholder} disabled={disabled} className={className} /> {description && (

{description}

)}
) } export default TextInput