import type { AppContext } from "../api" ; import { TOGGLE_DEBUG } from "../events" ; import { eventLink } from "./event-link" ; param ctx param debug param json export function debugContainer ( ctx , debug , json ) { return [ "div#debug" , ctx . ui . column . debug [ debug ] , [ eventLink , [ TOGGLE_DEBUG ] , ctx . ui . debugToggle , debug ? "close \u25bc" : "open \u25b2" , ] , [ "pre" , ctx . ui . code , json ] , ] ; }