Skip to content

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

586 B
Raw Blame
import { useQuery } from '@tanstack/react-query';
import { createFileRoute } from '@tanstack/react-router';
import { InvitesTable } from '@/components/settings/invites';
import { useTRPC } from '@/integrations/trpc/react';

export const Route = createFileRoute(
  '/_app/$organizationId/members/_tabs/invitations'
)({
  component: Component,
});

function Component() {
  const { organizationId } = Route.useParams();
  const trpc = useTRPC();
  const query = useQuery(
    trpc.organization.invitations.queryOptions({ organizationId })
  );

  return <InvitesTable query={query} />;
}