import React from 'react'; import type { IVariableError } from './inputs/variableInput.service'; export interface IVariableErrorProps { errors: IVariableError[]; } export interface IVariableErrorState {} export class VariableError extends React.Component { public render() { return (
{this.props.errors.length > 0 && (
    {this.renderErrors()}
)}
); } private renderErrors(): JSX.Element[] { return this.props.errors.map((e) =>
  • {e.message}
  • ); } }