import"./chunk-QTnfLwEv.js";import{i as e,o as t,t as n}from"./jsx-runtime-DHSfUA5-.js";import{t as r}from"./IdentityAvatar-BeraNLg7.js";t();var i=n();function a({model:t,identity:n,testId:a,nameTestId:o,onClick:s,trailing:c}){let l=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r,{model:t,identity:n,size:48,className:e.IdentityItem.Avatar}),(0,i.jsx)(`span`,{className:e.IdentityItem.Name,"data-test-id":o,children:n.name}),c]});return s?(0,i.jsx)(`button`,{className:e.IdentityItem.Root,type:`button`,"data-test-id":a,onClick:s,children:l}):(0,i.jsx)(`div`,{className:e.IdentityItem.Root,"data-test-id":a,children:l})}export{a as t};
//# sourceMappingURL=IdentityItem-toejfr9O.js.map