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