mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-27 15:24:18 +00:00
16 lines
431 B
JavaScript
16 lines
431 B
JavaScript
|
import React, { useContext } from "react"
|
||
|
import Style from "./Window.module.css"
|
||
|
import classNames from "classnames"
|
||
|
import ContextTheme from "../../../contexts/ContextTheme"
|
||
|
|
||
|
|
||
|
export default function Window({ children, className, ...props }) {
|
||
|
const {theme} = useContext(ContextTheme)
|
||
|
|
||
|
return (
|
||
|
<div className={classNames(Style.Window, theme, className)} {...props}>
|
||
|
{children}
|
||
|
</div>
|
||
|
)
|
||
|
}
|