import e from"react";import r from"../../prop-types/index.js";import n from"../../classnames/index.js";import{tagPropType as t,mapToCssModules as o}from"./utils.js";var s=["className","cssModule","color","innerRef","pill","tag"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},l.apply(this,arguments)}function a(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},s=Object.keys(e);for(t=0;t<s.length;t++)n=s[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(t=0;t<s.length;t++)n=s[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i={children:r.node,className:r.string,color:r.string,cssModule:r.object,innerRef:r.oneOfType([r.object,r.func,r.string]),pill:r.bool,tag:t};function c(r){var t=r.className,i=r.cssModule,c=r.color,p=void 0===c?"secondary":c,f=r.innerRef,u=r.pill,d=void 0!==u&&u,m=r.tag,b=void 0===m?"span":m,g=a(r,s),y=o(n(t,"badge","bg-"+p,!!d&&"rounded-pill"),i);return g.href&&"span"===b&&(b="a"),e.createElement(b,l({},g,{className:y,ref:f}))}c.propTypes=i;export{c as default};
//# sourceMappingURL=Badge.js.map
