import{useCurrentProfile as u}from"@baseapp-frontend/authentication";import{AvatarWithPlaceholder as d}from"@baseapp-frontend/design-system/components/web/avatars";import{Box as i,Typography as t}from"@mui/material";import{jsx as l,jsxs as n}from"react/jsx-runtime";var f=function(){var e,o,a=u(),r=a.currentProfile;return r?n(i,{sx:{m:1.5,mb:0,px:1,py:.75,gap:1.5},display:"flex",alignItems:"center",children:[l(d,{width:40,height:40,src:(e=r?.image)!==null&&e!==void 0?e:"",alt:"Current profile avatar",color:"secondary"}),n(i,{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",children:[l(t,{component:"p",variant:"subtitle2",noWrap:!0,children:r.name}),r?.urlPath&&l(t,{variant:"body2",sx:{color:"text.secondary"},noWrap:!0,children:r==null||(o=r.urlPath)===null||o===void 0?void 0:o.replace("/","")})]})]}):null},h=f;export{h as a};
//# sourceMappingURL=chunk-YXBUSSMP.mjs.map