import e from"react";import r from"../../prop-types/index.js";import t from"../../classnames/index.js";import{tagPropType as a,mapToCssModules as o}from"./utils.js";var l=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},n.apply(this,arguments)}function s(e,r){if(null==e)return{};var t,a,o=function(e,r){if(null==e)return{};var t,a,o={},l=Object.keys(e);for(a=0;a<l.length;a++)t=l[a],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c={children:r.node,className:r.string,close:r.object,closeAriaLabel:r.string,cssModule:r.object,tag:a,toggle:r.func,wrapTag:a};function i(r){var a,c=r.className,i=r.cssModule,p=r.children,m=r.toggle,u=r.tag,g=void 0===u?"h5":u,b=r.wrapTag,d=void 0===b?"div":b,f=r.closeAriaLabel,v=void 0===f?"Close":f,y=r.close,j=s(r,l),O=o(t(c,"modal-header"),i);return!y&&m&&(a=e.createElement("button",{type:"button",onClick:m,className:o("btn-close",i),"aria-label":v})),e.createElement(d,n({},j,{className:O}),e.createElement(g,{className:o("modal-title",i)},p),y||a)}i.propTypes=c;export{i as default};
//# sourceMappingURL=ModalHeader.js.map
