mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-18 19:44:21 +00:00
377ce36c28
- Add vite-env.d.ts for import.meta.env and asset type declarations
- Remove dead layout.tsx (providers already in main.tsx)
- Fix useSearchParams destructuring to [searchParams] tuple (11 locations)
- Replace process.env.NEXT_PUBLIC_* with import.meta.env.VITE_*
- Fix langbotIcon.src to langbotIcon (Vite returns URL string)
- Fix Link href to Link to for react-router-dom
- Fix navigate({ scroll: false }) to { preventScrollReset: true }
- Fix [router] dependency arrays to [navigate]
- Remove Next.js plugin from tsconfig, set rsc: false in components.json
- Replace next lint with eslint in lint-staged
20 lines
535 B
TypeScript
20 lines
535 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 id={detailId} />;
|
|
}
|
|
|
|
return (
|
|
<div className="flex h-full items-center justify-center text-muted-foreground">
|
|
<p>{t('mcp.selectFromSidebar')}</p>
|
|
</div>
|
|
);
|
|
}
|