mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-16 23:07:14 +00:00
20 lines
550 B
TypeScript
20 lines
550 B
TypeScript
import { useSearchParams } from 'react-router-dom';
|
|
import { useTranslation } from 'react-i18next';
|
|
import MCPDetailContent from './MCPDetailContent';
|
|
|
|
export default function MCPPage() {
|
|
const { t } = useTranslation();
|
|
const [searchParams] = useSearchParams();
|
|
const detailId = searchParams.get('id');
|
|
|
|
if (detailId) {
|
|
return <MCPDetailContent key={detailId} id={detailId} />;
|
|
}
|
|
|
|
return (
|
|
<div className="flex h-full items-center justify-center text-muted-foreground">
|
|
<p>{t('mcp.selectFromSidebar')}</p>
|
|
</div>
|
|
);
|
|
}
|