// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
import { Size } from '../../../Types/Size';
// #endregion
/**
 * The template of the `BadgeElement`.
 *
 * @public
 */
export function badgeElementTemplate(e) {
    return html `
        ${when(e.icon.trim(), () => html `
        <mosaik-icon part="icon"
                     .data="${e.icon}"
                     .size="${Size.Small}"
                     ?inline="${true}"></mosaik-icon>
        `)}
        ${when(e.label.trim(), () => html `
        <mosaik-text part="label"
                     .text="${e.label}"></mosaik-text>
        `)}
    `;
}
//# sourceMappingURL=BadgeElementTemplate.js.map