Files
webshop/shop/app/wizard/page.tsx
DanielS 8b4fd5f02e
All checks were successful
Staging Build / build (push) Successful in 3m1s
feat(dashboard): add customer accordion view and extension flow
2026-07-21 08:43:00 +02:00

17 lines
474 B
TypeScript

import { redirect } from 'next/navigation'
interface PageProps {
searchParams: Promise<{ id?: string; orderId?: string; mode?: string }>
}
export default async function WizardPage({ searchParams }: PageProps) {
const params = await searchParams
const id = params.orderId || params.id
const mode = params.mode
const query = new URLSearchParams()
if (id) query.set('orderId', id)
if (mode) query.set('mode', mode)
redirect(`/order?${query.toString()}`)
}