define(["require","exports","tslib","react","spectrum/button","comments2/components/comment_stream/mention_icon","comments2/components/comment_editor/components/post_bar","prop-types","comments2/components/coachmark_location","comments2/components/sticker_component/sticker_component"],(function(e,t,n,o,c,a,s,r,m,l){"use strict";function i(e){return o.createElement(c.Button,{"aria-label":e.label,className:"sc-comment-editor-control-btn",onClick:e.onClick},o.createElement(a.MentionIcon,null))}function p(e){return o.createElement("div",{className:"sc-comment-editor-inline-controls"},e.children)}Object.defineProperty(t,"__esModule",{value:!0}),o=n.__importStar(o),r=n.__importStar(r),t.MentionButton=i,t.InlineControls=p;var u=function(e,t){var n=t.localization.intl,c=e.signals,a=e.postEnabled,r=e.cancelEnabled,u=e.isEmpty,d=e.coachmarkTargetProps,k=e.stickerPacks,b=o.createElement(i,{label:n.formatMessage({id:"zdkp-",defaultMessage:"@mention someone"}),onClick:c.insertMention}),_=d?o.createElement(m.CoachmarkTarget,Object.assign({name:m.CoachmarkTargets.MAIN_EDITOR_MENTION_BUTTON},d),k&&u?o.createElement(l.StickerComponent,Object.assign({},{stickerPacks:k,onStickerSelected:c.postSticker})):null,b):b;return!u||a||r?o.createElement(s.PostBar,Object.assign({},e,{postLabel:n.formatMessage({id:"3R968",defaultMessage:"Post"}),cancelLabel:n.formatMessage({id:"2Jfhd",defaultMessage:"Cancel"})}),_):o.createElement(p,null,_)};u.contextTypes={localization:r.object},t.CommentStreamPostBar=o.memo(u)})); //# sourceMappingURL=comment_stream_post_bar.min.js-vfl-8Ihoj.map