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