11 lines
240 B
TypeScript
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 ?? [];
|
|
}
|