import Title from "@ui5/webcomponents/dist/Title.js"; import type IllustratedMessage from "./IllustratedMessage.js"; export default function IllustratedMessageTemplate(this: IllustratedMessage) { return (
); } 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; }