suna/frontend/src/app/(dashboard)/(teamAccount)/[accountSlug]/page.tsx

20 lines
403 B
TypeScript
Raw Normal View History

2025-04-18 06:49:07 +08:00
'use client';
2025-04-16 01:20:15 +08:00
import { redirect } from 'next/navigation';
2025-04-18 06:49:07 +08:00
import React from 'react';
2025-04-12 02:57:17 +08:00
2025-04-18 06:49:07 +08:00
type AccountParams = {
accountSlug: string;
};
2025-04-16 01:20:15 +08:00
2025-04-18 06:49:07 +08:00
export default function AccountRedirect({
params
}: {
params: Promise<AccountParams>
}) {
const unwrappedParams = React.use(params);
const { accountSlug } = unwrappedParams;
2025-04-16 01:20:15 +08:00
// Redirect to the settings page
2025-04-21 12:49:18 +08:00
redirect(`/${accountSlug}/settings`);
2025-04-16 01:20:15 +08:00
}