/** * File: VideoCard.tsx * Created by: AI Assistant * Date: 2025-12-05 * Purpose: Video card component for kreatiVortex platform * Part of: kreatiVortex - Platform Pembelajaran Tari Online */ 'use client'; import { Eye, User, Calendar } from 'lucide-react'; import VideoThumbnail from './VideoThumbnail'; import VideoActions from './VideoActions'; interface VideoData extends Record { id: string; title: string; description: string; videoType: 'YOUTUBE' | 'LOCAL'; videoUrl: string; viewCount: number; createdAt: string; isPublic: boolean; uploaderId: string; uploader: { user: { name: string; }; }; } interface VideoCardProps { video: VideoData; userProfile: any; onDelete: (videoId: string) => void; } function VideoCard({ video, userProfile, onDelete }: VideoCardProps) { return (
{/* Video Thumbnail */} {/* Video Info */}

{video.title}

{video.viewCount || 0}

{video.description}

{/* Video Metadata */}
{video.uploader.user.name}
{new Date(video.createdAt).toLocaleDateString('id-ID', { year: 'numeric', month: 'short', day: 'numeric' })}
{/* Video Actions */}
); } export default VideoCard;