'use client'; import { Video, Download, Copy, Check } from 'lucide-react'; import { useState } from 'react'; interface VideoCardProps { videoData: string; // Base64 prompt: string; model: string; } export function VideoCard({ videoData, prompt, model }: VideoCardProps) { const [copied, setCopied] = useState(false); const handleDownload = () => { const link = document.createElement('a'); link.href = `data:video/mp4;base64,${videoData}`; link.download = `video-${Date.now()}.mp4`; link.click(); }; const handleCopyPrompt = async () => { await navigator.clipboard.writeText(prompt); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return (
{/* Video */}
{/* Info */}
{/* Prompt */}

Prompt

{prompt}

{/* Model */}
Modelo: {model}
{/* Actions */}
); }