@activecollab/components
Version:
ActiveCollab Components
22 lines (20 loc) • 767 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import React from "react";
import classnames from "classnames";
import { StyledDialogTitle } from "./Styles";
import { Header3 } from "../Typography/Variants/Header3";
// import { useDialogContext } from "./DialogContext";
export const DialogTitle = _ref => {
let {
children,
className,
disableDefaultHeading = false,
...rest
} = _ref;
// useDialogContext();
return /*#__PURE__*/React.createElement(StyledDialogTitle, _extends({
className: classnames("c-dialog-title-wrapper", className)
}, rest), disableDefaultHeading ? children : /*#__PURE__*/React.createElement(Header3, null, children));
};
DialogTitle.displayName = "DialogTitle";
//# sourceMappingURL=DialogTitle.js.map