import{r as s,j as r}from"./vendor--leCAzSo.js";import{a as e,b as a,d as i,e 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 t=s.memo(({enabled:t,onDismiss:n})=>{const{conversation:m}=e(),d=a({conversationUuid:m?.id,isStreaming:!1}),{dismiss:c}=i(),p=s.useCallback(()=>{c("cowork_guest_pass_upsell_banner"),n()},[c,n]);return t&&d?r.jsx(o,{referralLink:d.referralLink,remainingPasses:d.remainingPasses,formattedRewardAmount:d.formattedRewardAmount,onDismiss:p}):null});t.displayName="CoworkGuestPassUpsellChatBanner";export{t as CoworkGuestPassUpsellChatBanner};
