'use strict';

var index = require('./index-p7cvUYAE.js');
var parts = require('./parts-BXshb_S-.js');

const FormControlErrorText = (props) => {
    const { errorText, name } = props;
    if (!errorText) {
        return null;
    }
    return (index.h("small", { class: 'form-text text-danger', id: `form-error-text-${name}`, part: parts.textDanger }, errorText));
};

exports.FormControlErrorText = FormControlErrorText;
