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

const FormInputLabel = ({ label, isRequired, name }) => {
    if (!label)
        return false;
    return (h("div", { part: cn('form-input-label', {
            [`${name}-label`]: !!name,
        }), class: "form-input-label" },
        label,
        isRequired && (h("span", { part: cn('form-input-label-required-star', {
                [`${name}-label-required-star`]: !!name,
            }), class: "form-input-label-required-star" }, "*"))));
};

export { FormInputLabel as F };
