import{o}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as s,ki as r}from"./vendor-frame-CwiylG4Y.js";import{Xl as a}from"./shared-1-3-6x7RKF.js";import{ks as n}from"./shared-4-6CEyRAHb.js";import{ca as m}from"./shared-5-UQAFGbWu.js";import{Jn as e,Mt as i,Xn as t}from"./shared-7-VxUxSmVa.js";var c=o(s()),l=r(),p=(0,c.memo)(({enabled:o,onDismiss:s,onAction:r})=>{const{conversation:p}=n(),{variant:d}=t(),{dismiss:u}=a(),_=m(p?.id),{connectorNames:f,mcpToolCallCount:j}=i(p?.id,_),b=(0,c.useCallback)(()=>{u("cowork_mcp_upsell_banner"),s()},[u,s]),k=(0,c.useCallback)(()=>{u("cowork_mcp_upsell_banner"),r({mcp_tool_call_count:j})},[u,r,j]);return o?(0,l.jsx)(e,{variant:d,connectorNames:f,onDismiss:b,onAction:k}):null});export{p as CoworkMcpUpsellChatBanner};