(props: MetricProps)
| 7 | import {useMetric} from './primitives.ts'; |
| 8 | |
| 9 | export 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 | }; |