feat(chat): support ai photo viewing
This commit is contained in:
@@ -54,7 +54,10 @@ export function ChatScreen() {
|
||||
!isGuest &&
|
||||
state.paywallTriggered &&
|
||||
state.paywallReason === "daily_limit";
|
||||
const showExhaustedBanner = showGuestQuotaBanner || showDailyLimitBanner;
|
||||
const showPhotoPaywallBanner =
|
||||
state.paywallTriggered && state.paywallReason === "photo_paywall";
|
||||
const showExhaustedBanner =
|
||||
showGuestQuotaBanner || showDailyLimitBanner || showPhotoPaywallBanner;
|
||||
|
||||
const externalBrowserPromptShownRef = useRef(false);
|
||||
|
||||
@@ -152,7 +155,18 @@ export function ChatScreen() {
|
||||
/>
|
||||
|
||||
{showExhaustedBanner ? (
|
||||
<ChatQuotaExhaustedBanner />
|
||||
<ChatQuotaExhaustedBanner
|
||||
title={
|
||||
showPhotoPaywallBanner
|
||||
? "Unlock VIP to view Elio's photos"
|
||||
: undefined
|
||||
}
|
||||
ctaLabel={
|
||||
showPhotoPaywallBanner
|
||||
? "Activate VIP to view photos"
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
) : (
|
||||
<ChatInputBar disabled={state.isReplyingAI} />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user