MCPcopy Index your code
hub / github.com/tinyplex/tinybase / MetricView

Function MetricView

src/ui-solid/MetricView.tsx:9–24  ·  view source on GitHub ↗
(props: MetricProps)

Source from the content-addressed store, hash-verified

7import {useMetric} from './primitives.ts';
8
9export const MetricView = (props: MetricProps): JSXElement => {
10 const metric = useMetric(
11 () => props.metricId,
12 () => props.metrics,
13 );
14 return (
15 <>
16 {wrap(
17 getValue(metric) ?? EMPTY_STRING,
18 undefined,
19 props.debugIds,
20 props.metricId,
21 )}
22 </>
23 );
24};

Callers

nothing calls this directly

Calls 3

useMetricFunction · 0.90
wrapFunction · 0.90
getValueFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…