2021-04-21 16:42:28 +00:00
|
|
|
import React from "react"
|
2021-04-23 00:24:38 +00:00
|
|
|
import Style from "./BoxHeader.module.css"
|
2021-04-21 16:42:28 +00:00
|
|
|
import classNames from "classnames"
|
|
|
|
|
|
|
|
|
2021-04-23 00:18:06 +00:00
|
|
|
/**
|
|
|
|
* A box with only the header part and with no body.
|
|
|
|
*
|
|
|
|
* @param children - What should be displayed inside the header.
|
|
|
|
* @param className - Additional class(es) that should be added to the box.
|
|
|
|
* @param props - Additional props to pass to the box.
|
|
|
|
* @returns {JSX.Element}
|
|
|
|
* @constructor
|
|
|
|
*/
|
2021-04-23 00:24:38 +00:00
|
|
|
export default function BoxHeader({ children, className, ...props }) {
|
2021-04-21 16:42:28 +00:00
|
|
|
return (
|
|
|
|
<div className={classNames(Style.BoxHeaderOnly, className)} {...props}>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|