'use client'; import type { BroadcastInfo } from '@/types/broadcast'; import BroadcastCard from './BroadcastCard'; import styles from './styles/BroadcastSection.module.scss'; interface PopularSectionProps { broadcasts: BroadcastInfo[]; isLoading?: boolean; } export default function PopularSection({ broadcasts, isLoading = false }: PopularSectionProps) { return (

🔥 인기 LIVE

{isLoading ? ( // 로딩 스켈레톤 (5개) Array.from({ length: 5 }).map((_, index) => (
)) ) : ( broadcasts.map((broadcast) => ( )) )}
); }