import Title from "@ui5/webcomponents/dist/Title.js"; import type IllustratedMessage from "./IllustratedMessage.js"; export default function IllustratedMessageTemplate(this: IllustratedMessage) { return (
{renderIllustration.call(this)}
{this.hasTitle &&
{this.hasFormattedTitle ? : {this.effectiveTitleText} }
} {this.hasSubtitle &&
{this.hasFormattedSubtitle ? : this.effectiveSubitleText }
} {this.hasActions &&
}
); } function renderIllustration(this: IllustratedMessage) { const illustration = this.effectiveIllustration; // Safe variant: render template if (illustration && typeof illustration === "object") { return illustration; } // Unsafe variant: render SVG string if (illustration && typeof illustration === "string") { return
; } return null; }