import React, { forwardRef } from "react"; interface FormInputProps extends React.InputHTMLAttributes { label: string; error?: string; multiline?: boolean; } export const FormInput = forwardRef( ({ label, error, className = "", multiline, ...props }, ref) => { const Component = multiline ? 'textarea' : 'input'; return (
{error && (

{error}

)}
); } ); FormInput.displayName = "FormInput";