import { motion } from 'framer-motion'; import { Calendar, Link2 } from 'lucide-react'; import { decodeHtmlEntities, formatXDateTimeWithTime } from './utils'; /** * 영상 정보 컴포넌트 (공통) */ function VideoInfo({ schedule, isShorts }) { const members = schedule.members || []; const isFullGroup = members.length === 5; return (
{/* 제목 */}

{decodeHtmlEntities(schedule.title)}

{/* 메타 정보 */}
{/* 날짜/시간 */}
{formatXDateTimeWithTime(schedule.date, schedule.time)}
{/* 채널명 */} {schedule.channelName && ( <>
{schedule.channelName}
)}
{/* 멤버 목록 */} {members.length > 0 && (
{isFullGroup ? ( 프로미스나인 ) : ( members.map((member) => ( {member.name} )) )}
)} {/* 유튜브에서 보기 버튼 */}
YouTube에서 보기
); } /** * PC 유튜브 섹션 컴포넌트 */ function YoutubeSection({ schedule }) { const videoId = schedule.videoId; const isShorts = schedule.videoType === 'shorts'; if (!videoId) return null; // 숏츠: 가로 레이아웃 (영상 + 정보) if (isShorts) { return (
{/* 영상 임베드 */}