interface InputProps extends React.InputHTMLAttributes { label?: string; error?: string; } export function Input({ label, error, ...props }: InputProps) { return ( {label && ( {label} )} {error && {error}} ); }
{error}