import { DetailedHTMLProps, InputHTMLAttributes, TextareaHTMLAttributes, } from 'react'; type Props = | ({ multiline: true } & DetailedHTMLProps< TextareaHTMLAttributes, HTMLTextAreaElement >) | ({ multiline: false | undefined } & DetailedHTMLProps< InputHTMLAttributes, HTMLInputElement >); export default function TextInput({ multiline, className, ...props }: Props) { if (multiline) { return (