1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 21:14:18 +00:00
pds-2021-g2-nest/nest_frontend/routes/PageSettings.js
2021-05-23 16:20:53 +02:00

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>
)
}