// 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 {TabSearchAppElement} from './app.js';
export function getHtml(this: TabSearchAppElement) {
// clang-format off
return html`
${this.tabOrganizationEnabled_ ? html`
<cr-tabs
.tabNames="${this.tabNames_}"
.tabIcons="${this.tabIcons_}"
.selected="${this.selectedTabIndex_}"
@selected-changed="${this.onSelectedTabChanged_}">
</cr-tabs>
<cr-page-selector .selected="${this.selectedTabIndex_}">
<tab-search-page></tab-search-page>
${this.declutterEnabled_
? html`<tab-organization-selector></tab-organization-selector>`
: html`<auto-tab-groups-page></auto-tab-groups-page>`}
</cr-page-selector>
` : html`
<tab-search-page></tab-search-page>
`}`;
// clang-format on
}