"use strict";var React=require("react"),stringUtil=require("./stringUtil-1ce2e674.js");function _interopNamespace(a){if(a&&a.__esModule)return a;var r=Object.create(null);return a&&Object.keys(a).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(a,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return a[e]}}))}),r.default=a,Object.freeze(r)}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,r=e.title,c=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:prefixCls+"-close",onClick:s},React__namespace.createElement(stringUtil.Icon$1,{icon:"close"})),React__namespace.createElement("div",{className:prefixCls+"-title"},r),t&&s&&React__namespace.createElement(stringUtil.Button,{onClick:s},c||""),a&&i&&React__namespace.createElement(stringUtil.Button,{type:"primary",className:prefixCls+"-ok-btn",onClick:i,loading:l,disabled:e},n||""))});exports.MapDrawerHeader=MapDrawerHeader;
