//@flow import React from "react"; import LabelWithHelpIcon from "./LabelWithHelpIcon"; export type SelectItem = { value: string, label: string }; type Props = { name?: string, label?: string, placeholder?: SelectItem[], value?: string, onChange: (value: string, name?: string) => void, helpText?: string }; class Textarea extends React.Component { field: ?HTMLTextAreaElement; handleInput = (event: SyntheticInputEvent) => { this.props.onChange(event.target.value, this.props.name); }; render() { const { placeholder, value, label, helpText } = this.props; return (