@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
14 lines (11 loc) • 497 B
JavaScript
import React from 'react';
import cx from 'classnames';
const LayoutSectionTitle = ({ children, headerLink, }) => {
return (React.createElement("h2", { className: cx("cobalt-layout-section-title", {
"cobalt-layout--hasHeaderLink": !!headerLink,
}) },
headerLink && (React.createElement("div", { className: "cobalt-layout-header-link" }, headerLink)),
children));
};
export { LayoutSectionTitle as default };
//# sourceMappingURL=LayoutSectionTitle.js.map