// SPDX-License-Identifier: MIT // Copyright (C) 2026 Pooya Parsa // The Browser window (preview.ts, components/Preview.tsx): a web server in // the guest, shown in a window. Hidden from the launcher: it opens when an // app with ports or the guest's `open` asks for it. Its name, chrome icon and // key are its window's (preview.ts BROWSER). import { BROWSER, PREVIEW_WIN, openPreview } from "../../preview.ts"; import type { PageApp } from "../types.ts"; export default { kind: "page", ...BROWSER, hidden: true, desc: "A web server in the guest, in a window", win: PREVIEW_WIN, // A globe: a circle, the equator and a meridian. icon: { svg: '' }, colors: ["#0ea5e9", "#0c4a6e"], open: () => { openPreview(); }, } satisfies PageApp;