move sdk packages to its own folder and rename api & dashboard
This commit is contained in:
9
apps/dashboard/src/hooks/useEventNames.ts
Normal file
9
apps/dashboard/src/hooks/useEventNames.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { api } from '@/app/_trpc/client';
|
||||
|
||||
export function useEventNames(projectId: string) {
|
||||
const query = api.chart.events.useQuery({
|
||||
projectId: projectId,
|
||||
});
|
||||
|
||||
return query.data ?? [];
|
||||
}
|
||||
Reference in New Issue
Block a user