type InputProps = { label: string name: string error?: string | undefined } & React.DetailedHTMLProps, HTMLInputElement> export function Input({ label, name, error, ...props }: InputProps) { return ( <> {error ? {error} : null} ) }