Files
stats/apps/dashboard/src/hooks/useEventProperties.ts
Carl-Gerhard Lindesvärd 444e553b74 🧹 clean up duty 🧹
2024-03-28 10:40:49 +01:00

11 lines
231 B
TypeScript

import { api } from '@/trpc/client';
export function useEventProperties(projectId: string, event?: string) {
const query = api.chart.properties.useQuery({
projectId: projectId,
event,
});
return query.data ?? [];
}