/*!
 * Built by ShiftSoftware
 * Copyright (c)
 */
import { h } from './index-Bf4Ol6Qt.js';
import { c as cn } from './cn-BK16Cn81.js';

const FormErrorMessage = ({ errorMessage, isError, name }) => (h("div", { part: cn('form-error-message-container', { [`${name}-error-message-container`]: !!name }), class: "error-message-container" },
    h("div", { part: cn('form-error-message', { [`${name}-error-message`]: !!name, 'display-error-message': isError }), class: cn('error-message', {
            'display-error-message': isError,
        }) }, errorMessage)));

export { FormErrorMessage as F };
