clapper / src /services /metrics /useMetrics.ts
jbilcke-hf's picture
jbilcke-hf HF staff
add linter and prettifier
c1f12bf
raw
history blame
293 Bytes
'use client'
import { create } from 'zustand'
import { MetricsStore } from './types'
import { getDefaultMetricsState } from './getDefaultMetricsState'
export const useMetrics = create<MetricsStore>((set, get) => ({
...getDefaultMetricsState(),
// TODO: add a track metric callback
}))