Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

315 B
Raw Blame
import { useQuery } from '@tanstack/react-query';
import { useTRPC } from '@/integrations/trpc/react';

export function useProfileProperties(projectId: string) {
  const trpc = useTRPC();
  const query = useQuery(
    trpc.profile.properties.queryOptions({
      projectId,
    })
  );
  return query.data ?? [];
}