"use client"; /** * Messages sent while the turn runs, in the box they were sent from. * * Each waits its turn: plain words are offered to the running turn, which * reads them after the step in flight; the rest go as the next turn once * this one ends. Either can be taken back until it is read. */ import { CornerDownRight, X } from "lucide-react"; import { useTranslation } from "react-i18next"; import type { QueuedMessage } from "@/features/chat/ChatStateAdapter"; import Tooltip from "@/shared/ui/Tooltip"; export default function QueuedMessages({ messages, isStreaming, onWithdraw, }: { messages: QueuedMessage[]; isStreaming: boolean; onWithdraw: (id: string) => void; }) { const { t } = useTranslation(); if (!messages.length) return null; return ( ); }