mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 13:04:19 +00:00
25 lines
912 B
JavaScript
25 lines
912 B
JavaScript
import React, { useContext } from "react"
|
|
import Style from "./PageSettings.module.css"
|
|
import classNames from "classnames"
|
|
import BoxFull from "../components/base/BoxFull"
|
|
import SelectTheme from "../components/interactive/SelectTheme"
|
|
import BoxLoggedIn from "../components/interactive/BoxLoggedIn"
|
|
import SelectLanguage from "../components/interactive/SelectLanguage"
|
|
import ContextLanguage from "../contexts/ContextLanguage"
|
|
|
|
|
|
export default function PageSettings({ children, className, ...props }) {
|
|
const { strings } = useContext(ContextLanguage)
|
|
|
|
return (
|
|
<div className={classNames(Style.PageSettings, className)} {...props}>
|
|
<BoxLoggedIn/>
|
|
<BoxFull header={strings.changeLang}>
|
|
<SelectLanguage/>
|
|
</BoxFull>
|
|
<BoxFull header={strings.switchTheme}>
|
|
<SelectTheme/>
|
|
</BoxFull>
|
|
</div>
|
|
)
|
|
}
|