mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
18 lines
556 B
TypeScript
18 lines
556 B
TypeScript
import type { LegacyToolsSearchParams } from '@/app/components/tools/integration-routes'
|
|
import { getIntegrationRedirectPathByLegacyToolsSearchParams } from '@/app/components/tools/integration-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
|