Skip to content

🤯 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.

389 B
Raw Blame
'use client';

import { memo } from 'react';
import { useParams } from 'react-router';

import { GoalDetailPage } from '@/features/AgentGoals';

const GoalDetailRoute = memo(() => {
  const { aid, goalId } = useParams<{ aid?: string; goalId?: string }>();
  if (!aid || !goalId) return null;

  return <GoalDetailPage agentId={aid} goalId={goalId} />;
});

export default GoalDetailRoute;