2021-05-18 18:50:02 +02:00
|
|
|
import React, { useContext } from "react"
|
2021-04-29 16:58:31 +02:00
|
|
|
import BoxFull from "../components/base/BoxFull"
|
|
|
|
import SelectTheme from "../components/interactive/SelectTheme"
|
|
|
|
import BoxLoggedIn from "../components/interactive/BoxLoggedIn"
|
2021-05-17 14:32:42 +00:00
|
|
|
import SelectLanguage from "../components/interactive/SelectLanguage"
|
2021-05-18 18:50:02 +02:00
|
|
|
import ContextLanguage from "../contexts/ContextLanguage"
|
2021-05-25 04:06:14 +02:00
|
|
|
import PageWithHeader from "../components/base/layout/PageWithHeader"
|
|
|
|
import BoxHeader from "../components/base/BoxHeader"
|
|
|
|
import { faCog } from "@fortawesome/free-solid-svg-icons"
|
|
|
|
import makeIcon from "../utils/makeIcon"
|
|
|
|
import BodyFlex from "../components/base/layout/BodyFlex"
|
2021-04-21 18:21:30 +02:00
|
|
|
|
|
|
|
|
2021-05-25 04:09:47 +02:00
|
|
|
export default function PageSettings() {
|
2021-05-18 18:50:02 +02:00
|
|
|
const { strings } = useContext(ContextLanguage)
|
2021-04-25 17:22:52 +02:00
|
|
|
|
2021-04-21 18:21:30 +02:00
|
|
|
return (
|
2021-05-25 04:06:14 +02:00
|
|
|
<PageWithHeader
|
|
|
|
header={
|
|
|
|
<BoxHeader>
|
|
|
|
{makeIcon(faCog)} {strings.settings}
|
|
|
|
</BoxHeader>
|
|
|
|
}
|
|
|
|
>
|
|
|
|
<BodyFlex>
|
|
|
|
<BoxLoggedIn/>
|
|
|
|
<BoxFull header={strings.changeLang}>
|
|
|
|
<SelectLanguage/>
|
|
|
|
</BoxFull>
|
|
|
|
<BoxFull header={strings.switchTheme}>
|
|
|
|
<SelectTheme/>
|
|
|
|
</BoxFull>
|
|
|
|
</BodyFlex>
|
|
|
|
</PageWithHeader>
|
2021-04-21 18:21:30 +02:00
|
|
|
)
|
|
|
|
}
|