import{camelCase as t}from"es-toolkit";import{getStyle as e}from"../../helpers/typesciptCssModulesHelper.js";import{getTestId as s,ComponentDefaultTestId as a}from"../../tests/testIds.js";import r from"classnames";import o from"react";import{AvatarSize as i,AvatarType as m}from"./AvatarConstants.js";import{Icon as l}from"@vibe/icon/mockedClassNames";import{withStaticPropsWithoutForwardRef as c}from"../../types/withStaticProps.js";import"../../utils/colors-vars-map.js";import n from"./AvatarContent.module.scss.js";var d=c((function(i){var m=i.type,c=void 0===m?"text":m,d=i.src,p=i.icon,f=i.text,u=i.ariaLabel,A=i.role,N=i.size,v=void 0===N?"large":N,T=i.textClassName,C=void 0===T?"":T,j=i.id,E=i["data-testid"],x=r(e(n,t("content_"+c)),e(n,t("content_"+c+"--"+v)));switch(c){case"img":return o.createElement("img",{role:A,alt:u,src:d,className:x,id:j,"data-testid":E||s(a.AVATAR_CONTENT,j)});case"icon":return o.createElement(l,{icon:p,"aria-label":u,className:x,ariaHidden:!1,id:j,"data-testid":E||s(a.AVATAR_CONTENT,j)});case"text":return o.createElement("span",{"aria-label":u,role:A,className:r(x,C),id:j,"data-testid":E||s(a.AVATAR_CONTENT,j)},f);default:return null}}),{sizes:i,types:m});export{d as default};
//# sourceMappingURL=AvatarContent.js.map
