import { html, LitElement, render } from "lit"; import "./ChatPanel.js"; import "./live-reload.js"; import { customElement } from "lit/decorators.js"; import "@mariozechner/mini-lit/dist/ThemeToggle.js"; import { Button, icon } from "@mariozechner/mini-lit"; import { Settings } from "lucide"; import { ApiKeysDialog } from "./dialogs/ApiKeysDialog.js"; async function getDom() { const [tab] = await chrome.tabs.query({ active: true, currentWindow: true }); if (!tab || !tab.id) return; const results = await chrome.scripting.executeScript({ target: { tabId: tab.id }, func: () => document.body.innerText, }); } @customElement("pi-chat-header") export class Header extends LitElement { createRenderRoot() { return this; } render() { return html`