18 lines
574 B
TypeScript
18 lines
574 B
TypeScript
import { CompteSettingsSectionFromSegments } from "@/components/compte/compte-settings-section-view"
|
|
|
|
// On web, next.config redirects /compte -> /account. In the mobile static export
|
|
// there are no redirects, so this page keeps the account UI reachable at /compte
|
|
// from every per-app build.
|
|
export function generateStaticParams() {
|
|
return [{ section: [] }]
|
|
}
|
|
|
|
export default async function ComptePage({
|
|
params,
|
|
}: {
|
|
params: Promise<{ section?: string[] }>
|
|
}) {
|
|
const { section } = await params
|
|
return <CompteSettingsSectionFromSegments segments={section} />
|
|
}
|