import * as React from 'react';
import { I as Icon, al as Button } from './MapEditView-f6381866.js';

const prefixCls = 'dm-map-drawer-header';
const MapDrawerHeader = React.memo(({ showCancelButton = true, showOkButton = true, title, cancelText, okText, onOk, onCancel, okLoading, okDisabled, }) => {
    return (React.createElement("div", { className: prefixCls },
        React.createElement("div", { className: `${prefixCls}-close`, onClick: onCancel },
            React.createElement(Icon, { icon: "close" })),
        React.createElement("div", { className: `${prefixCls}-title` }, title),
        showCancelButton && onCancel && React.createElement(Button, { onClick: onCancel }, cancelText || ''),
        showOkButton && onOk && (React.createElement(Button, { type: "primary", className: `${prefixCls}-ok-btn`, onClick: onOk, loading: okLoading, disabled: okDisabled }, okText || ''))));
});

export { MapDrawerHeader as M };
