Files
DocsGPT/frontend/src/agents/SharedAgentGate.tsx
2025-05-27 13:50:13 +05:30

8 lines
203 B
TypeScript

import { Navigate, useParams } from 'react-router-dom';
export default function SharedAgentGate() {
const { agentId } = useParams();
return <Navigate to={`/agents/shared/${agentId}`} replace />;
}