| 1 | import { AccountView } from 'better-auth-ui' |
| 2 | import { accountViewPaths } |
| 3 | import type { Metadata |
| 4 | import { createMetadata } |
| 5 | |
| 6 | export const dynamicParams = |
| 7 | |
| 8 | export const metadata: |
| 9 | title: 'Account', |
| 10 | description: 'Manage your Saturn account, security, and connected sessions.', |
| 11 | openGraph: { |
| 12 | images: ['/api/og?page=Account'], |
| 13 | }, |
| 14 | twitter: { |
| 15 | images: ['/api/og?page=Account'], |
| 16 | }, |
| 17 | }) |
| 18 | |
| 19 | export function generateStaticParams() |
| 20 | return Object.values |
| 21 | path, |
| 22 | })) |
| 23 | } |
| 24 | |
| 25 | export default async function |
| 26 | params, |
| 27 | }: PageProps< |
| 28 | const { path |
| 29 | |
| 30 | return ( |
| 31 | <main className='container self-center p-4 md:p-6 |
| 32 | <AccountView |
| 33 | classNames={{ |
| 34 | sidebar: { |
| 35 | base: 'sticky top-20', |
| 36 | }, |
| 37 | }} |
| 38 | pathname={path} |
| 39 | /> |
| 40 | </main> |
| 41 | ) |
| 42 | } |