🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { TRPCClientError } from '@trpc/client';
import { useClientDataSWR } from '@/libs/swr';
import { projectReviewKeys } from '@/libs/swr/projectReviewKeys';
import { projectReviewService } from '@/services/projectReview';
export const useProjectSites = (projectId: string | null, config?: { refreshInterval?: number }) =>
useClientDataSWR(
projectId ? projectReviewKeys.sites(projectId) : null,
() => projectReviewService.listSites(projectId!),
config,
);
export const useProjectMembers = (projectId: string) =>
useClientDataSWR(projectReviewKeys.members(projectId), () =>
projectReviewService.listMembers(projectId),
);
export const isForbidden = (error: unknown) =>
error instanceof TRPCClientError && error.data?.code === 'FORBIDDEN';