import{jsx as e}from"react/jsx-runtime";import a from"classnames";import{BEMClass as r}from"../../helpers/bem-helper.js";import{AvatarType as s,AvatarSize as t}from"./AvatarConstants.js";import i from"../Icon/Icon.js";import"./AvatarContent.scss.js";var l=r("l3-style-avatar-content"),n=function(r){var n=r.type,o=void 0===n?s.TEXT:n,c=r.src,m=r.icon,p=r.text,u=r.ariaLabel,v=r.role,b=r.size,d=void 0===b?t.LARGE:b,f=r.textClassName,j=void 0===f?"":f,N=a(l({element:o}),l({element:o,state:d}));switch(o){case s.IMG:return e("img",{role:v,alt:u,src:c,className:N});case s.ICON:return e(i,{icon:m,"aria-label":u,clickable:!1,className:N,ariaHidden:!1});case s.TEXT:return e("span",Object.assign({"aria-label":u,role:v,className:a(N,j)},{children:p}));default:return null}};Object.assign(n,{types:s,sizes:t});export{n as AvatarContent};
