(period: string = '24h')
| 82 | } |
| 83 | |
| 84 | export function usePerformance(period: string = '24h') { |
| 85 | return useQuery({ |
| 86 | queryKey: queryKeys.performance(period), |
| 87 | queryFn: () => api.getPerformance(period), |
| 88 | refetchInterval: 60000, |
| 89 | }); |
| 90 | } |
| 91 | |
| 92 | // Events |
| 93 | export function useRecentEvents(limit: number = 100) { |
no test coverage detected