import { cn } from "@/lib/utils"; import { forwardRef } from "react"; import { LucideIcon } from "lucide-react"; interface MedicalInputProps extends React.InputHTMLAttributes { label?: string; icon?: LucideIcon; error?: string; } const MedicalInput = forwardRef( ({ className, label, icon: Icon, error, type = "text", ...props }, ref) => { return (
{label && ( )}
{Icon && (
)}
{error && (

{error}

)}
); } ); MedicalInput.displayName = "MedicalInput"; export default MedicalInput;