import React, { useState } from 'react'; import { Card } from '../ui/card'; import { Button } from '../ui/button'; import { Badge } from '../ui/badge'; import { Users, Heart, Share2, DollarSign, MessageSquare, Send, Radio, Settings, Maximize2 } from 'lucide-react'; import { LiveStream } from '../../types'; import { useToast } from '../../context/ToastContext'; const featuredStream: LiveStream = { id: '1', title: 'Late Night DnB Production 🎧 | Feedback Session', streamer: 'Neuro_Glitch', viewers: 1240, thumbnailUrl: 'https://picsum.photos/id/140/800/450', tags: ['Production', 'Ableton', 'DnB'], isLive: true, category: 'Production' }; const chatMessages = [ { user: 'BassHead99', text: 'That Reese bass is filthy! 🤮🔥', color: 'text-kodo-cyan' }, { user: 'Studio_Rat', text: 'What VST is that?', color: 'text-gray-400' }, { user: 'Neuro_Glitch', text: 'It\'s Phase Plant, just initializing now.', color: 'text-kodo-gold font-bold' }, { user: 'VocalChops', text: 'Sent a $5 dono! Check my track?', color: 'text-kodo-lime' }, ]; export const LiveView: React.FC = () => { const { addToast } = useToast(); const [msgInput, setMsgInput] = useState(''); const handleSend = () => { if (!msgInput) return; addToast("Message sent to chat", "success"); setMsgInput(''); }; return (
{/* Main Stream Area */}
{/* Mock Video Feed */}
{/* Live Indicator */}
LIVE {featuredStream.viewers}
{/* Stream Controls Overlay */}
{/* Stream Info */}

{featuredStream.title}

addToast("Opening Streamer Profile")}>{featuredStream.streamer}

{featuredStream.tags.map(tag => ( ))}
{/* Suggested Streams */}

Recommended Channels

{[1, 2, 3].map(i => ( addToast("Switching stream...")}>
DJ Set
Techno Bunker 24/7
Underground_Radio
))}
{/* Live Chat */}
STREAM CHAT
{chatMessages.map((msg, i) => (
{msg.user}: {msg.text}
))}
Welcome to the chat room!
setMsgInput(e.target.value)} onKeyDown={(e) => e.key === 'Enter' && handleSend()} className="w-full bg-kodo-ink border border-kodo-steel rounded px-3 py-2 text-sm text-white focus:border-kodo-cyan outline-none" placeholder="Say something..." />
Balance: 420 $VEZA addToast("Opening Wallet...")}>Get Coins
); };