import { THEME_CSS, escapeHtml, escapeAttr } from "../render/layout"; import { BUILD_ID } from "../build"; import type { CachedModel } from "../store"; export function buildIssueNew(owner: string, repo: string, writesEnabled: boolean, models: CachedModel[] = [], currentModel = ""): string { const listHref = `/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues`; const action = `/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues`; const modelSelect = models.length > 0 ? `` : ""; const body = writesEnabled ? `
` : `