MCPcopy Index your code
hub / github.com/anomalyco/opencode / columns

Function columns

packages/console/support/src/component/result.tsx:57–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56function DataTable(props: { rows: Record<string, unknown>[] }) {
57 const columns = () => {
58 const cols = new Set<string>()
59 for (const row of props.rows) {
60 for (const key of Object.keys(row)) cols.add(key)
61 }
62 return [...cols]
63 }
64
65 return (
66 <Show when={props.rows.length > 0} fallback={<div data-empty>(no data)</div>}>

Callers 3

DataTableFunction · 0.85
WhichKeyPanelFunction · 0.85
runFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected