Add chat gifts and relationship diary UI
Docker Image / Quality and Bundle Budgets (push) Successful in 3s
Docker Image / Build and Push Docker Image (push) Has been cancelled

This commit is contained in:
Codex
2026-07-21 17:41:18 +08:00
parent 4c512d323e
commit 7ed97af68e
54 changed files with 1950 additions and 69 deletions
@@ -1,4 +1,7 @@
"use client";
import type { CommercialAction } from "@/data/schemas/chat";
import { CommercialActionCard } from "./commercial-action-card";
import { ImageBubble } from "./image-bubble";
import { LockedImageMessageCard } from "./locked-image-message-card";
import { PrivateMessageCard } from "./private-message-card";
@@ -24,6 +27,7 @@ export interface MessageContentProps {
onUnlockVoiceMessage?: ChatMessageAction;
onUnlockImageMessage?: ChatMessageAction;
onOpenImage?: (displayMessageId: string) => void;
commercialAction?: CommercialAction | null;
}
type ChatMessageAction = (
@@ -51,6 +55,7 @@ export function MessageContent({
onUnlockVoiceMessage,
onUnlockImageMessage,
onOpenImage,
commercialAction,
}: MessageContentProps) {
const hasImage = imageUrl != null && imageUrl.length > 0;
const hasAudio = audioUrl != null && audioUrl.length > 0;
@@ -125,6 +130,12 @@ export function MessageContent({
) : null}
</>
)}
{isFromAI && commercialAction ? (
<CommercialActionCard
action={commercialAction}
characterId={characterId}
/>
) : null}
</div>
);
}