1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 14:34:19 +00:00
pds-2021-g2-nest/nest_frontend/components/base/layout/PageWithHeader.js

22 lines
639 B
JavaScript

import React from "react"
import Style from "./PageWithHeader.module.css"
import classNames from "classnames"
export default function PageWithHeader({ header, buttons, children, className, ...props }) {
return (
<div className={classNames(Style.PageWithHeader, className)} {...props}>
<div className={Style.Header}>
{header}
</div>
{buttons ?
<div className={Style.Buttons}>
{buttons}
</div>
: null}
<div className={Style.Body}>
{children}
</div>
</div>
)
}