'use client';

import * as React from 'react';
// import type { Metadata } from 'next';
import Stack from '@mui/material/Stack';
import Typography from '@mui/material/Typography';
import { useTranslation } from 'react-i18next';

import { config } from '@/config';
import { AccountDetails } from '@/components/dashboard/settings/account-details';
import { DeleteAccount } from '@/components/dashboard/settings/delete-account';
import { Privacy } from '@/components/dashboard/settings/privacy';
import { ThemeSwitch } from '@/components/dashboard/settings/theme-switch';

// export const metadata = { title: `Account | Settings | Dashboard | ${config.site.name}` } satisfies Metadata;

export default function Page(): React.JSX.Element {
  const { t } = useTranslation();

  return (
    <Stack spacing={4}>
      <div>
        <Typography variant="h4">{t('account')}</Typography>
      </div>
      <Stack spacing={4}>
        <AccountDetails />
        <ThemeSwitch />
        <Privacy />
        <DeleteAccount />
      </Stack>
    </Stack>
  );
}
