@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
22 lines (21 loc) • 809 B
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import classnames from "classnames";
const LayoutSection = ({ children, isPageHeader, className, headerLink })=>{
const hasHeaderLink = !!headerLink && isPageHeader;
return /*#__PURE__*/ jsxs("div", {
className: classnames("cobalt-layout-section", className, {
"cobalt-layout--isPageHeader": isPageHeader,
"cobalt-layout--hasHeaderLink": hasHeaderLink
}),
children: [
hasHeaderLink && /*#__PURE__*/ jsx("div", {
className: "cobalt-layout-header-link",
children: headerLink
}),
children
]
});
};
const Components_LayoutSection = LayoutSection;
export default Components_LayoutSection;
//# sourceMappingURL=LayoutSection.js.map