UNPKG

@activecollab/components

Version:

ActiveCollab Components

24 lines (22 loc) 992 B
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, className, disableDefaultHeading = false } = _ref, 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