import React from 'react'; import { Card } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Send, DollarSign } from 'lucide-react'; import type { LiveViewChatMessage } from './types'; interface LiveViewChatProps { messages: LiveViewChatMessage[]; msgInput: string; onMsgInputChange: (value: string) => void; onSend: () => void; onWalletClick?: () => void; } export function LiveViewChat({ messages, msgInput, onMsgInputChange, onSend, onWalletClick, }: LiveViewChatProps) { return (
STREAM CHAT
{messages.map((msg, i) => (
{msg.user}: {msg.text}
))}
Welcome to the chat room!
onMsgInputChange(e.target.value)} onKeyDown={(e) => e.key === 'Enter' && onSend()} className="w-full bg-background border border-border rounded-xl px-4 py-2 text-sm text-foreground focus:border-primary outline-none transition-colors duration-[var(--duration-normal)]" placeholder="Say something..." />
Balance: 420 $VEZA Get Coins
); }