import { For, Show } from "solid-js" import type { DiagnosticEntry } from "./diagnostics" export function renderDiagnosticsSection( t: (key: string, params?: Record) => string, entries: DiagnosticEntry[], expanded: boolean, toggle: () => void, fileLabel: string, ) { if (entries.length === 0) return null return (
{(entry) => (
{entry.icon} {entry.label} {entry.displayPath} :L{entry.line || "-"}:C{entry.column || "-"} {entry.message}
)}
) }