import { ConversationEmptyState } from "@code/ui/components/ai-elements/conversation"; import { Button } from "@code/ui/components/button"; import { MobileChatMark } from "@code/ui/components/mobile-chat"; import { SUGGESTIONS } from "@/lib/chat/constants"; import type { ChatConversationProps } from "@/lib/chat/types"; import { ChatMessage } from "./chat-message"; import { ChatThinkingResponse } from "./chat-thinking-response"; export const ChatConversation = ({ historyReady, messages, onSuggestion, status, }: ChatConversationProps) => { if (historyReady && messages.length === 0) { return (

What can I help with?

Think, write, plan, or explore an idea with Zopu.

{SUGGESTIONS.map(([title, prompt]) => ( ))}
); } return (
{messages.map((message) => ( ))} {status === "submitted" && }
); };