import { CollapsedMarkdown } from "./TurnContent"; import type { Task } from "../types"; import { ReplyMarkdown } from "./ReplyMarkdown"; import { ImageGallery } from "./ImageGallery"; import { ReplyCover } from "./ReplyCover"; function QueueIcon() { return ; } export function QueuedPrompts({ task, compact = false, loadImage, onLightboxChange, onOpen }: { task: Task; compact?: boolean; loadImage?: (task: Task, url?: string) => Promise; onLightboxChange?: (opened: boolean) => void; onOpen?: () => void }) { if (!task.queuedPrompts?.length) return null; return
{compact ? `${task.queuedPrompts.length} queued` : `Queued prompts (${task.queuedPrompts.length})`}
    {task.queuedPrompts.map(prompt => compact ?
  1. {loadImage && onOpen && prompt.images[0] && } null} />
  2. : )}
; } function QueuedPrompt({ task, prompt, loadImage, onLightboxChange }: { task: Task; prompt: NonNullable[number]; loadImage?: (task: Task, url?: string) => Promise; onLightboxChange?: (opened: boolean) => void }) { return
  • {loadImage && prompt.images.length > 0 && }
  • ; }