import { h } from './index-CV0Pyo1O.js';
import { z as textDanger } from './parts-CPKMvyV_.js';

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

export { FormControlErrorText as F };
