chromium/chrome/browser/resources/privacy_sandbox/internals/private_state_tokens/sidebar.html.ts

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import {html} from '//resources/lit/v3_0/lit.rollup.js';

import type {PrivateStateTokensSidebarElement} from './sidebar.js';

export function getHtml(this: PrivateStateTokensSidebarElement) {
  //clang-format off
  return html`
  <cr-menu-selector id="selector" selectable="a" selected-attribute="selected">
    ${this.menuItems.map(item => html`
      <a role="menuitem" href="${item.path}" class="cr-nav-menu-item">
        <cr-icon class="icon" icon="${item.icon}"></cr-icon>
        ${item.name}
        <cr-ripple></cr-ripple>
      </a>
    `)}
  </cr-menu-selector>`;
  //clang-format on
}