import { __assign } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import Icon from '../../../icon';
import isNil from '../../../utils/isNil';
export var renderCloseBtn = function (closeBtn, onClose) {
    if (isNil(closeBtn)) {
        return null;
    }
    return (_jsx("div", __assign({ onClick: onClose, className: "zent-drawer-close", "data-zv": 'v10.0.12' }, { children: true === closeBtn ? _jsx(Icon, { type: "close" }, void 0) : closeBtn }), void 0));
};
