import{__rest as s}from"../../../_virtual/_tslib.js";import t from"react";import{camelCase as e}from"es-toolkit";import{getStyle as a}from"../../helpers/typesciptCssModulesHelper.js";import{getTestId as r,ComponentDefaultTestId as i}from"../../tests/testIds.js";import o from"classnames";import{Icon as m,CustomSvgIcon as c}from"@vibe/icon/mockedClassNames";import{AvatarSize as l}from"./AvatarConstants.js";import d from"./AvatarBadge.module.scss.js";import{withStaticPropsWithoutForwardRef as p}from"../../types/withStaticProps.js";import"../../utils/colors-vars-map.js";var n=p((function(l){var p=l.src,n=l.icon,f=l.tabIndex,j=void 0===f?0:f,v=l.className,b=l.size,u=void 0===b?"large":b,A=l.id,g=l["data-testid"],N=s(l,["src","icon","tabIndex","className","size","id","data-testid"]),k=o(a(d,e("badge--"+u)),v),x=g||r(i.AVATAR_BADGE,A);return n?t.createElement(m,Object.assign({icon:n,className:k},N,{"data-testid":x})):p?t.createElement(c,Object.assign({src:p,className:k,clickable:-1===j},N,{"data-testid":x})):null}),{sizes:l});export{n as default};
//# sourceMappingURL=AvatarBadge.js.map
