'use client'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faXmark, faUser } from '@fortawesome/free-solid-svg-icons'; import type { ChatParticipant } from '@/types/chat'; type Props = { participants: ChatParticipant[]; loading: boolean; onClose: () => void; }; // 접속 참여자 목록 — 채팅 본체(.chat-room__body) 위에 오버레이. row: ICON·별명·SID·LEVEL(등급 Order) export default function ChatParticipants({ participants, loading, onClose }: Props) { return (
접속자 {participants.length.toLocaleString()}명
{loading ? (
불러오는 중…
) : participants.length === 0 ? (
접속 중인 회원이 없습니다.
) : ( )}
); }