'use client'; import Link from 'next/link'; import Image from 'next/image'; import { Radio, Eye } from 'lucide-react'; import type { LiveChannelItem } from '@/types/response/channel/live-list'; import { buildWatchUrl, formatHandle, formatCount } from '@/lib/utils/channel'; type Props = { channel: LiveChannelItem; priority?: boolean; }; export default function LiveChannelCard({ channel, priority = false }: Props) { const href = buildWatchUrl({ handle: channel.handle, channelSID: channel.channelSID }); const viewerLabel = formatCount(channel.viewerCount); return (
{channel.channelThumbnailUrl ? ( ) : ( )}

{channel.liveTitle || '라이브 방송 중'}

{channel.channelName}
{channel.handle && (
{formatHandle(channel.handle)}
)}
); }