mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 21:14:18 +00:00
26 lines
965 B
JavaScript
26 lines
965 B
JavaScript
import React, { useContext } from "react"
|
|
import Style from "./PageSettings.module.css"
|
|
import classNames from "classnames"
|
|
import BoxHeader from "../components/base/BoxHeader"
|
|
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>
|
|
)
|
|
}
|