"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _ = require("../..");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var DrawerTitle = function DrawerTitle(_ref) {
  var _ref$title = _ref.title,
    title = _ref$title === void 0 ? 'Title' : _ref$title,
    helpTitle = _ref.helpTitle,
    showHelpTitle = _ref.showHelpTitle,
    _ref$onHelpClick = _ref.onHelpClick,
    onHelpClick = _ref$onHelpClick === void 0 ? function () {} : _ref$onHelpClick;
  return _react.default.createElement(_.Flexbox, {
    container: true,
    gap: 2,
    alignItems: "center"
  }, showHelpTitle && _react.default.createElement(_.Flexbox, {
    item: true
  }, _react.default.createElement(_.Button, {
    variant: "neutral",
    onClick: onHelpClick
  }, _react.default.createElement(_.Icon.ChevronLeft16, null))), _react.default.createElement(_.Flexbox, {
    item: true,
    grow: 1
  }, _react.default.createElement(_.Typography, {
    type: "title3",
    as: "h3"
  }, showHelpTitle ? helpTitle : title)), !showHelpTitle && _react.default.createElement(_.Flexbox, {
    item: true
  }, _react.default.createElement(_.Box, {
    pr: 8,
    pb: 3
  }, _react.default.createElement(_.Button, {
    variant: "neutral",
    onClick: onHelpClick
  }, _react.default.createElement(_.Icon.Settings16, null)))));
};
var _default = exports.default = DrawerTitle;