import e from"@babel/runtime/helpers/objectWithoutProperties";import{jsxs as t,jsx as s}from"react/jsx-runtime";import{isValidElement as a,cloneElement as r}from"react";import o from"classnames";import i from"./BadgeBase.scss.js";var c=["children","testId","className","badge","offsetY","offsetX","badgeHeight"],m=function(m){var d=m.children,f=m.testId,n=m.className,l=m.badge,h=m.offsetY,p=m.offsetX,b=m.badgeHeight,g=e(m,c),u=a(d)&&Object.keys(g).length>0?r(d,g):d,x={"--shift-x":"".concat(p,"px"),"--shift-y":"".concat(h,"px"),"--radius":"".concat(b/2,"px")};return t("div",{className:o(i.root,n),style:x,"data-testid":f,children:[s("div",{className:i.masked,children:u}),l]})};export{m as BadgeBase};
//# sourceMappingURL=BadgeBase.js.map
