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 e}from"./shared-4-6CEyRAHb.js";import{St as n,Zn as i}from"./shared-7-VxUxSmVa.js";var l=o(s()),c=r(),m=(0,l.memo)(({enabled:o,onDismiss:s,onAction:r})=>{const{conversation:m}=e(),t=i(m?.id),{dismiss:d}=a(),u=(0,l.useCallback)(()=>{d("cowork_upsell_banner"),s()},[d,s]),k=(0,l.useCallback)(()=>{d("cowork_upsell_banner"),r()},[d,r]),b=(0,l.useCallback)(()=>{d("claude_code_install_nudge"),s()},[d,s]),p=(0,l.useCallback)(()=>{d("cowork_upsell_banner"),r()},[d,r]);return o?(0,c.jsx)(n,{onCoworkDismiss:u,onCoworkAction:k,onCcDismiss:b,onCcAction:p,triggeredByCodeArtifact:t}):null});export{m as CoworkUpsellChatBanner};