// External imports
import * as React from "react"
import {
advancedDataConstructor,
Text,
cryptoHelper
} from "fawkes-server/build/support"
// Internal imports
import * as ce from "../../../../helpers/componentEnhancer"
import Icon from "../../icon"
export interface ParentProps {
changeField: (newValue: CompatibleData) => void
value: CompatibleData
label?: string
placeholder?: string
infoIcon?: string
isRequired?: boolean
typeOverride?: string
}
interface StateProps {}
interface DispatchProps {}
interface LocalState {}
export type CompatibleData = Text
class AdvancedFormTextarea extends React.Component<
ParentProps & StateProps & DispatchProps & ce.EnhancedPropsPrivate,
LocalState
> {
controlClasses() {
const classes = ["control"]
if (this.props.infoIcon) classes.push("has-icons-left")
return classes.join(" ")
}
infoIcon() {
if (!this.props.infoIcon) return null
return (