This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/pages/application/users/settings.tsx

37 lines
1.2 KiB
TypeScript
Raw Normal View History

import type { NextPage } from "next"
import useTranslation from "next-translate/useTranslation"
2021-12-28 16:06:58 +01:00
import { Head } from "../../../components/Head"
import { Application } from "../../../components/Application"
import type { PagePropsWithAuthentication } from "../../../tools/authentication"
import {
authenticationFromServerSide,
AuthenticationProvider,
} from "../../../tools/authentication"
import { UserSettings } from "../../../components/Application/UserSettings"
import { GuildsProvider } from "../../../contexts/Guilds"
2022-01-14 23:15:51 +01:00
const UserSettingsPage: NextPage<PagePropsWithAuthentication> = (props) => {
2022-04-09 11:33:28 +02:00
const { t } = useTranslation()
return (
<AuthenticationProvider authentication={props.authentication}>
<GuildsProvider>
<Head title={`Thream | ${t("application:user-settings")}`} />
2022-04-09 11:33:28 +02:00
<Application
path="/application/users/settings"
title={t("application:user-settings")}
2022-04-09 11:33:28 +02:00
>
<UserSettings />
</Application>
</GuildsProvider>
</AuthenticationProvider>
)
}
export const getServerSideProps = authenticationFromServerSide({
shouldBeAuthenticated: true,
})
2022-01-14 23:15:51 +01:00
export default UserSettingsPage