"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.HelpDrawerToggle = void 0;
var _DrawerToggle = _interopRequireDefault(require("../Drawer/DrawerToggle"));
var _classnames = _interopRequireDefault(require("classnames"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/**
 * A link that triggers the visibility of a help drawer
 */

const HelpDrawerToggle = _ref => {
  let {
    children,
    className,
    showDrawer,
    helpDrawerOpen,
    icon,
    ...others
  } = _ref;
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_DrawerToggle.default, {
    className: (0, _classnames.default)(className, 'ds-c-help-drawer__toggle'),
    drawerOpen: helpDrawerOpen,
    showDrawer: showDrawer,
    ...others,
    children: [children, " ", icon]
  });
};
exports.HelpDrawerToggle = HelpDrawerToggle;
var _default = exports.default = HelpDrawerToggle;