mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-23 13:34:19 +00:00
18 lines
558 B
JavaScript
18 lines
558 B
JavaScript
|
import React from "react"
|
||
|
import Style from "./BoxWithHeader.module.css"
|
||
|
import classNames from "classnames"
|
||
|
|
||
|
|
||
|
export default function BoxWithHeader({ header, body, className, ...props }) {
|
||
|
return (
|
||
|
<div className={classNames(Style.BoxWithHeader, className)} {...props}>
|
||
|
<div className={classNames(Style.BoxHeader, header.className)}>
|
||
|
{header.children}
|
||
|
</div>
|
||
|
<div className={classNames(Style.BoxBody, body.className)}>
|
||
|
{body.children}
|
||
|
</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|