import { FileCheck, Download, RefreshCw, Loader2 } from 'lucide-react' import { useState } from 'react' import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from '@/components/ui/alert-dialog' import { Button } from '@/components/ui/button' import { Card } from '@/components/ui/card' interface DocumentoSEPTabProps { pdfUrl: string | null isLoading: boolean onDownload: () => void onRegenerate: () => void isRegenerating: boolean } export function DocumentoSEPTab({ pdfUrl, isLoading, onDownload, onRegenerate, isRegenerating, }: DocumentoSEPTabProps) { const [showConfirmDialog, setShowConfirmDialog] = useState(false) const handleRegenerate = () => { setShowConfirmDialog(false) onRegenerate() } return (
Previsualización del documento oficial generado