Mercurial
view love/epi/src/components/ChatUI/MessageContainer.tsx @ 263:ee04e4e69fed
Add functional JRPG frame and tools
Add full-screen background_2 apertures, functional frame chrome, card-driven details, dual-window tools, live conversion workflows, and bounded cleanup for generated downloads.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <mrjunejune@users.noreply.github.com> |
|---|---|
| date | Thu, 06 Aug 2026 11:31:30 -0700 |
| parents | cf9caa4abc3e |
| children |
line wrap: on
line source
import { MessageItem } from './MessageItem'; import type { Message } from '@/atoms/chatAtoms'; interface MessageContainerProps { messages: Message[]; } export function MessageContainer(props: MessageContainerProps) { const { messages } = props; return ( <div className="flex-1 overflow-y-auto"> {messages.length === 0 ? ( <div className="flex items-center justify-center h-full text-gray-500"> <p>No messages yet. Start the conversation!</p> </div> ) : ( <div> {messages?.map((msg) => ( <MessageItem key={msg.id} message={msg} /> ))} </div> )} </div> ); }