blob: 8265ec3c01d7cd3f8ca3db3f86881cf55a7c3853 [file] [log] [blame]
// Copyright 2025 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 {AppElement} from './app.js';
export function getHtml(this: AppElement) {
// clang-format off
return html`
${this.logEntries_.length > 0 ? html`
<log-list .logEntries="${this.logEntries_}"
.selectedLogEntry="${this.selectedLog_}"
@log-selected="${this.onLogSelected_}">
</log-list>
<log-details .log="${this.selectedLog_}"></log-details>
` : html`
<div class="empty-message">
Trigger some ML predictions while this page is open to record logs.
</div>
`}`;
// clang-format on
}