2021-05-18 18:50:02 +02:00
|
|
|
import React, { useContext } from "react"
|
2021-04-21 18:21:30 +02:00
|
|
|
import Style from "./PageSettings.module.css"
|
|
|
|
import classNames from "classnames"
|
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-04-21 18:21:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
export default function PageSettings({ children, className, ...props }) {
|
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 (
|
|
|
|
<div className={classNames(Style.PageSettings, className)} {...props}>
|
2021-04-26 16:40:25 +02:00
|
|
|
<BoxLoggedIn/>
|
2021-05-23 16:20:08 +02:00
|
|
|
<BoxFull header={strings.changeLang}>
|
|
|
|
<SelectLanguage/>
|
2021-04-25 17:22:52 +02:00
|
|
|
</BoxFull>
|
2021-05-23 16:20:08 +02:00
|
|
|
<BoxFull header={strings.switchTheme}>
|
|
|
|
<SelectTheme/>
|
2021-04-23 02:26:16 +02:00
|
|
|
</BoxFull>
|
2021-04-21 18:21:30 +02:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|