page.tsx (451B)
1 import { redirect } from "next/navigation" 2 3 4 export default async function TeamManagement({ 5 searchParams, 6 }: { 7 searchParams: Promise<{ [key: string]: string | string[] | undefined }> 8 }) { 9 const teamId = (await searchParams).team as string | undefined 10 11 // Redirect to overview with team parameter 12 const redirectUrl = teamId ? `/dashboard/settings/members?team=${teamId}` : "/dashboard/settings/members" 13 14 redirect(redirectUrl) 15 }