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