import{jsx as e}from"react/jsx-runtime";import r from"classnames";import{BEMClass as t}from"../../../helpers/bem-helper.js";import s from"../../Icon/Icon.js";import{ToastArtWorkType as a,ToastArtWorkSize as o}from"../ToastConstants.js";var i=t("l3-style-artWork-content"),l=function(t){var l=t.type,n=void 0===l?a.IMG:l,c=t.src,m=t.icon,p=t.ariaLabel,d=t.role,u=t.size,f=void 0===u?o.SMALL:u,b=r(i({element:n}),i({element:n,state:f}));switch(n){case a.IMG:return e("img",{role:d,alt:p,src:c,width:"48px",height:"48px",style:{borderRadius:"2px"},className:b});case a.ICON:return e(s,{icon:m,"aria-label":p,clickable:!1,className:b,ariaHidden:!1});default:return null}};Object.assign(l,{types:a,sizes:o});export{l as ArtWork};
