Show image previews in optimistic user messages

This commit is contained in:
Mohamed Boudra
2026-02-16 12:19:38 +07:00
parent 75dc802a3a
commit f8f4c55976
10 changed files with 294 additions and 20 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { create } from "zustand";
import type { UserMessageImageAttachment } from "@/types/stream";
type PendingCreateAttempt = {
serverId: string;
@@ -6,6 +7,7 @@ type PendingCreateAttempt = {
messageId: string;
text: string;
timestamp: number;
images?: UserMessageImageAttachment[];
};
type CreateFlowState = {
@@ -24,4 +26,3 @@ export const useCreateFlowStore = create<CreateFlowState>((set) => ({
),
clear: () => set({ pending: null }),
}));