import Icon from "@ui5/webcomponents/dist/Icon.js"; import type ProductSwitchItem from "./ProductSwitchItem.js"; export default function ProductSwitchItemTemplate(this: ProductSwitchItem) { return ( <> {this.targetSrc ? { item.call(this) } :
{ item.call(this) }
} ); } function item(this: ProductSwitchItem) { return ( <> {this.image && this.image.length > 0 ? ( ) : ( this.icon && )} {this.titleText && {this.titleText} } {this.subtitleText && {this.subtitleText} } ); }