import Icon from "@ui5/webcomponents/dist/Icon.js"; import navRightArrow from "@ui5/webcomponents-icons/dist/navigation-right-arrow.js"; import navDownArrow from "@ui5/webcomponents-icons/dist/navigation-down-arrow.js"; import arrowRight from "@ui5/webcomponents-icons/dist/arrow-right.js"; import type SideNavigationItem from "./SideNavigationItem.js"; export default function SideNavigationItemTemplate(this: SideNavigationItem) { if (this.sideNavCollapsed) { return ItemTemplate.call(this); } return (
  • {ItemTemplate.call(this)}
  • ); } function ItemTemplate(this: SideNavigationItem) { const EffectiveTag = this._effectiveTag; return ( <> {this.sideNavCollapsed ? : this.icon && }
    {this.text}
    {this.sideNavCollapsed ? !!this.items.length && : !!this.items.length && } {this.isExternalLink && }
    {!this.sideNavCollapsed && !!this.items.length && } ); }