feat(dashboard): reuse reports filter on overview and add more operators (#31)

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-05 15:55:31 +02:00
parent 7e941080dc
commit 18b3bc3018
20 changed files with 464 additions and 168 deletions

View File

@@ -0,0 +1,11 @@
import { api } from '@/trpc/client';
export function usePropertyValues(
params: Parameters<typeof api.chart.values.useQuery>[0]
) {
const query = api.chart.values.useQuery(params, {
staleTime: 1000 * 60 * 10,
});
return query.data?.values ?? [];
}