{
static readonly componentId = 'FormFieldMessages'
static allowedProps = allowedProps
static defaultProps = {}
ref: Element | null = null
handleRef = (el: Element | null) => {
this.ref = el
}
componentDidMount() {
this.props.makeStyles?.()
}
componentDidUpdate() {
this.props.makeStyles?.()
}
render() {
const { messages, styles } = this.props
return messages && messages.length > 0 ? (
{messages.map((msg, i) => {
return (
{msg.text}
)
})}
) : null
}
}
export default FormFieldMessages
export { FormFieldMessages }