Files
stats/apps/web/src/hooks/useProfileProperties.ts
Carl-Gerhard Lindesvärd 9c92803c4c a looooot
2024-02-22 21:50:30 +01:00

11 lines
240 B
TypeScript

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