import React from 'react'; import { Card, CardContent, CardHeader } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import { Download, Trash2, X, File, ImageIcon, Video, Music, FileText } from 'lucide-react'; interface MediaFile { id: string; name: string; type: string; size: number; url: string; uploadedAt: Date; uploadedBy: string; } interface User { id: string; name: string; color: string; lastSeen: Date; isTyping?: boolean; currentLine?: number; } interface MediaModalProps { file: MediaFile | null; isOpen: boolean; onClose: () => void; onDelete?: (fileId: string) => void; getFileUrl: (file: MediaFile) => string; currentUser?: User | null; } export const MediaModal: React.FC = ({ file, isOpen, onClose, onDelete, getFileUrl, currentUser }) => { if (!isOpen || !file) return null; const getFileIcon = (type: string) => { if (type.startsWith('image/')) return ; if (type.startsWith('video/')) return