ject from within a <a href="/api/the-essentials/using-react/provider/"><code>Provider</code></a> component context.</p><pre><code><span class="function"><a href="/api/ui-react/functions/metrics-hooks/usemetrics/">useMetrics</a></span><span class="punctuation">(</span>id<span class="operator">?</span><span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">)</span><span class="operator">:</span> <span class="type"><a href="/api/metrics/interfaces/metrics/metrics/">Metrics<