mirror of
https://github.com/langgenius/dify.git
synced 2026-07-23 20:18:40 +08:00
16 lines
543 B
TypeScript
16 lines
543 B
TypeScript
import type { LegacyToolsSearchParams } from '@/app/components/integrations/routes'
|
|
import { getIntegrationRedirectPathByLegacyToolsSearchParams } from '@/app/components/integrations/routes'
|
|
import { redirect } from '@/next/navigation'
|
|
|
|
type ToolsPageProps = {
|
|
searchParams?: Promise<LegacyToolsSearchParams>
|
|
}
|
|
|
|
const ToolsPage = async ({ searchParams }: ToolsPageProps) => {
|
|
const resolvedSearchParams = await searchParams
|
|
|
|
redirect(getIntegrationRedirectPathByLegacyToolsSearchParams(resolvedSearchParams))
|
|
}
|
|
|
|
export default ToolsPage
|