(name)
| 176 | return t0; |
| 177 | } |
| 178 | export function useGauge(name) { |
| 179 | const $ = _c(3); |
| 180 | const store = useStats(); |
| 181 | let t0; |
| 182 | if ($[0] !== name || $[1] !== store) { |
| 183 | t0 = value => store.set(name, value); |
| 184 | $[0] = name; |
| 185 | $[1] = store; |
| 186 | $[2] = t0; |
| 187 | } else { |
| 188 | t0 = $[2]; |
| 189 | } |
| 190 | return t0; |
| 191 | } |
| 192 | export function useTimer(name) { |
| 193 | const $ = _c(3); |
| 194 | const store = useStats(); |