"use strict";var React=require("react"),stringUtil=require("./stringUtil-b879c63f.js");function _interopNamespace(a){if(a&&a.__esModule)return a;var c=Object.create(null);return a&&Object.keys(a).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(a,e),Object.defineProperty(c,e,t.get?t:{enumerable:!0,get:function(){return a[e]}}))}),c.default=a,Object.freeze(c)}var React__namespace=_interopNamespace(React),prefixCls="dm-map-drawer-header",MapDrawerHeader=React__namespace.memo(function(e){var t=e.showCancelButton,t=void 0===t||t,a=e.showOkButton,a=void 0===a||a,c=e.title,r=e.cancelText,n=e.okText,i=e.onOk,s=e.onCancel,l=e.okLoading,e=e.okDisabled;return React__namespace.createElement("div",{className:prefixCls},React__namespace.createElement("div",{className:"".concat(prefixCls,"-close"),onClick:s},React__namespace.createElement(stringUtil.Icon,{icon:"close"})),React__namespace.createElement("div",{className:"".concat(prefixCls,"-title")},c),t&&s&&React__namespace.createElement(stringUtil.Button,{onClick:s},r||""),a&&i&&React__namespace.createElement(stringUtil.Button,{type:"primary",className:"".concat(prefixCls,"-ok-btn"),onClick:i,loading:l,disabled:e},n||""))});exports.MapDrawerHeader=MapDrawerHeader;
