'use client'; import { useEffect } from 'react'; import { useRouter, useSearchParams } from 'next/navigation'; import { Loader2 } from 'lucide-react'; import { Suspense } from 'react'; function BotManageLegacyRedirectContent() { const router = useRouter(); const searchParams = useSearchParams(); const botId = searchParams.get('botId'); useEffect(() => { const target = botId ? `/mini-apps/bot-father?botId=${encodeURIComponent(botId)}` : '/mini-apps/bot-father'; router.replace(target); }, [botId, router]); return (
Перенаправление...
); } export default function BotManageLegacyRedirectPage() { return ( } > ); }