import{r as a,u as s,d as t}from"./vendor--leCAzSo.js";import{g as o}from"./index-DZuQva-j.js";import"./c723dd3dd-58n3MxoB.js";import"./ca9c256b9-7brFE8T2.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const e=t({badge:{defaultMessage:"New",id:"bW7B87wFFp"},body:{defaultMessage:"You can now turn chat on or off for your organization. Disabling chat also disables projects and artifacts.",id:"a8r1/ypsrg"}}),i=a.memo(({enabled:t,onDismiss:i})=>{const r=s(),d=o(a=>a.setAdminCapabilityTooltip),c=o(a=>a.clearAdminCapabilityTooltip);return a.useEffect(()=>{if(t)return d("chat",r.formatMessage(e.body),{badgeText:r.formatMessage(e.badge),onDismiss:i}),()=>{c(!0)};c(!0)},[t,r,d,c,i]),null});i.displayName="ChatCapabilityNux";export{i as ChatCapabilityNux};
