MCPcopy Create free account
hub / github.com/PostHog/duckgres / Field

Function Field

controlplane/admin/ui/src/components/QueryDetailDialog.tsx:17–24  ·  view source on GitHub ↗
({ label, value, mono }: { label: string; value: React.ReactNode; mono?: boolean })

Source from the content-addressed store, hash-verified

15import { fmtDurationMs, fmtInt, fmtTime } from "@/lib/format";
16
17function Field({ label, value, mono }: { label: string; value: React.ReactNode; mono?: boolean }) {
18 return (
19 <div className="flex flex-col gap-0.5">
20 <span className="text-[10px] uppercase tracking-wide text-muted-foreground">{label}</span>
21 <span className={mono ? "font-mono text-xs break-all" : "text-xs"}>{value ?? "—"}</span>
22 </div>
23 );
24}
25
26// Detail view for a single in-flight query, loaded on demand by pid. The SQL is
27// redacted server-side (usersecrets.RedactForLog) — credentials in CREATE

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected