move back 😏
This commit is contained in:
10
apps/dashboard/src/hooks/useEventProperties.ts
Normal file
10
apps/dashboard/src/hooks/useEventProperties.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { api } from '@/app/_trpc/client';
|
||||
|
||||
export function useEventProperties(projectId: string, event?: string) {
|
||||
const query = api.chart.properties.useQuery({
|
||||
projectId: projectId,
|
||||
event,
|
||||
});
|
||||
|
||||
return query.data ?? [];
|
||||
}
|
||||
Reference in New Issue
Block a user