MCPcopy Create free account
hub / github.com/tinyplex/tinybase / ContextMetrics

Function ContextMetrics

test/unit/core/ui-react/components.test.tsx:498–510  ·  view source on GitHub ↗
({
  metrics,
  metricsById,
  metricsId,
}: {
  readonly metrics?: Metrics;
  readonly metricsById?: {[metricsId: string]: Metrics};
  readonly metricsId?: string;
})

Source from the content-addressed store, hash-verified

496);
497
498const ContextMetrics = ({
499 metrics,
500 metricsById,
501 metricsId,
502}: {
503 readonly metrics?: Metrics;
504 readonly metricsById?: {[metricsId: string]: Metrics};
505 readonly metricsId?: string;
506}) => (
507 <Provider metrics={metrics} metricsById={metricsById}>
508 <ContextMetricsChild metricsId={metricsId} />
509 </Provider>
510);
511
512const ContextMetricsChild = ({metricsId}: {readonly metricsId?: string}) => (
513 <>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…