login system

This commit is contained in:
2026-06-02 11:31:11 -04:00
parent f6bced78f3
commit a1b120076b
17 changed files with 579 additions and 27 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
import { useQuery } from '@tanstack/react-query'
import { getStats } from '../lib/api'
export function useStats() {
export function useStats(enabled = true) {
const statsQuery = useQuery({
queryKey: ['stats'],
queryFn: getStats,
enabled,
})
return {