UNPKG

@activecollab/components

Version:

ActiveCollab Components

23 lines (21 loc) 1.11 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; const _excluded = ["children", "className", "disableDefaultHeading"]; 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 = _ref.children, className = _ref.className, _ref$disableDefaultHe = _ref.disableDefaultHeading, disableDefaultHeading = _ref$disableDefaultHe === void 0 ? false : _ref$disableDefaultHe, rest = _objectWithoutPropertiesLoose(_ref, _excluded); // 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