dify/web/app/(commonLayout)/tools/page.tsx
2026-05-12 14:51:55 -07:00

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