MCPcopy Create free account
hub / github.com/simstudioai/sim / formatPrimitiveValue

Function formatPrimitiveValue

apps/sim/ee/audit-logs/components/audit-logs.tsx:67–72  ·  view source on GitHub ↗
(value: string | number | boolean | null)

Source from the content-addressed store, hash-verified

65}
66
67function formatPrimitiveValue(value: string | number | boolean | null): string {
68 if (value === null) return '-'
69 if (typeof value === 'boolean') return value ? 'Yes' : 'No'
70 if (typeof value === 'number') return value.toLocaleString()
71 return value
72}
73
74function renderMetadataValue(value: unknown) {
75 if (value == null) return <span className='text-[var(--text-muted)]'>-</span>

Callers 1

renderMetadataValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected