MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / iconForValue

Function iconForValue

app/utilities/icons.ts:31–33  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

29import { IconComponent } from "~/useColumnView";
30
31export function iconForValue(value: unknown): IconComponent {
32 return iconForType(inferType(value));
33}
34
35export function iconForType(type: JSONValueType): IconComponent {
36 switch (type.name) {

Callers 1

SearchItemFunction · 0.90

Calls 1

iconForTypeFunction · 0.85

Tested by

no test coverage detected