import e from"react";import r from"../../prop-types/index.js";import t from"../../classnames/index.js";import{mapToCssModules as n}from"./utils.js";var o=["className","cssModule","variant","innerRef"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},c.apply(this,arguments)}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function s(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)t=c[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)t=c[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l={active:r.bool,"aria-label":r.string,onClick:r.func,variant:r.oneOf(["white"]),className:r.string,cssModule:r.object,innerRef:r.oneOfType([r.object,r.string,r.func])};function f(r){var l=r.className;r.cssModule;var f=r.variant,p=r.innerRef,u=s(r,o),b=n(t(l,"btn-close",f&&"btn-close-".concat(f)));return e.createElement("button",c({ref:p,type:"button",className:b},function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach((function(r){i(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({"aria-label":"close"},u)))}f.propTypes=l;export{f as default};
//# sourceMappingURL=CloseButton.js.map
