2021-05-18 16:50:02 +00:00
|
|
|
import React, { useContext } from "react"
|
2021-04-29 14:58:31 +00: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 16:50:02 +00:00
|
|
|
import ContextLanguage from "../contexts/ContextLanguage"
|
2021-05-25 02:06:14 +00: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 16:21:30 +00:00
|
|
|
|
|
|
|
|
2021-05-25 02:09:47 +00:00
|
|
|
export default function PageSettings() {
|
2021-05-18 16:50:02 +00:00
|
|
|
const { strings } = useContext(ContextLanguage)
|
2021-04-25 15:22:52 +00:00
|
|
|
|
2021-04-21 16:21:30 +00:00
|
|
|
return (
|
2021-05-25 02:06:14 +00: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 16:21:30 +00:00
|
|
|
)
|
|
|
|
}
|