import React from 'react'; import Link from 'next/link'; import { Radio, Users, MapPin } from 'lucide-react'; import type { Stream } from '@/lib/api'; export default function StreamCard({ stream }: { stream: Stream }) { return (
{/* Thumbnail area */}
{stream.thumbnailUrl ? ( // eslint-disable-next-line @next/next/no-img-element {stream.name} ) : (
)} {/* Status badge */}
{stream.status === 'live' && } {stream.status === 'live' ? 'Live' : 'Offline'}
{/* Viewer count */} {stream.viewerCount > 0 && (
{stream.viewerCount.toLocaleString()}
)}
{/* Info */}

{stream.name}

{stream.location && (
{stream.location}
)} {stream.description && (

{stream.description}

)}
); }