import{a as r}from"./chunk-GIGXCAJ2.mjs";import{IconButton as m}from"@baseapp-frontend/design-system/components/web/buttons";import{FavoriteIcon as s,FavoriteSelectedIcon as u}from"@baseapp-frontend/design-system/components/web/icons";import{Typography as v}from"@mui/material";import{jsx as o,jsxs as g}from"react/jsx-runtime";var p=function(e){var c=e.target;return o(r,{target:c,reactionType:"LIKE",children:function(n){var a,i,l=n.handleReaction,d=n.isLoading,t=n.target;return g("div",{className:"grid grid-cols-[repeat(2,minmax(20px,max-content))] gap-1",children:[o(m,{onClick:l,isLoading:d,"aria-label":"react to comment ".concat(t.id),children:t!=null&&(a=t.myReaction)!==null&&a!==void 0&&a.id?o(u,{sx:{color:"error.main"}}):o(s,{})}),o(v,{variant:"caption",color:"text.secondary","aria-label":"reactions count ".concat(t?.id),children:t==null||(i=t.reactionsCount)===null||i===void 0?void 0:i.total})]})}})},B=p;export{B as a};
//# sourceMappingURL=chunk-FSFL2CDH.mjs.map