import{r as o,j as r}from"./vendor-react-AXa6hZO5.js";import{a as s,f as n,d as e,g as t,h as i,i as a}from"./index-D35RxkWr.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-1gcJXWab.js";import"./c6eedc03a-C8LSdtro.js";import"./vendor-intl-BdADXLLt.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-motion-DGh7M6mr.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./c365fd3fe-Dmpsm876.js";import"./c70a3d12b-BI7Bbafv.js";import"./vendor-luxon-Y8l99kBI.js";import"./tree-sitter-BFuuT2ac.js";const m=o.memo(({enabled:m,onDismiss:d,onAction:p})=>{const{conversation:c}=s(),{variant:l}=n(),{dismiss:j}=e(),v=t(c?.id),{connectorNames:u,mcpToolCallCount:_}=i(c?.id,v),b=o.useCallback(()=>{j("cowork_mcp_upsell_banner"),d()},[j,d]),f=o.useCallback(()=>{j("cowork_mcp_upsell_banner"),p({mcp_tool_call_count:_})},[j,p,_]);return m?r.jsx(a,{variant:l,connectorNames:u,onDismiss:b,onAction:f}):null});m.displayName="CoworkMcpUpsellChatBanner";export{m as CoworkMcpUpsellChatBanner};
