"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.HelpDrawer = void 0;
var _Drawer = _interopRequireDefault(require("../Drawer/Drawer"));
var _classnames = _interopRequireDefault(require("classnames"));
var _useHelpDrawerAnalytics = _interopRequireDefault(require("./useHelpDrawerAnalytics"));
var _jsxRuntime = require("preact/compat/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/**
 * For information about how and when to use this component,
 * [refer to its full documentation page](https://design.cms.gov/components/drawer/).
 */
const HelpDrawer = props => {
  const {
    analytics,
    analyticsLabelOverride,
    onAnalyticsEvent,
    children,
    className,
    ...others
  } = props;
  const headingRef = (0, _useHelpDrawerAnalytics.default)(props);
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Drawer.default, {
    className: (0, _classnames.default)(className, 'ds-c-help-drawer'),
    headingRef: headingRef,
    ...others,
    children: children
  });
};
exports.HelpDrawer = HelpDrawer;
var _default = exports.default = HelpDrawer;