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 onDownloadPdf: () => void onDownloadWord: () => void onRegenerate: () => void isRegenerating: boolean } export function DocumentoSEPTab({ pdfUrl, isLoading, onDownloadPdf, onDownloadWord, onRegenerate, isRegenerating, }: DocumentoSEPTabProps) { const [showConfirmDialog, setShowConfirmDialog] = useState(false) const handleRegenerate = () => { setShowConfirmDialog(false) onRegenerate() } return (
{/* Header */}

Documento SEP

Previsualización del documento oficial generado

¿Regenerar documento SEP? Se generará una nueva versión del documento con la información actual. Cancelar Regenerar {pdfUrl && !isLoading && ( <> )}
{/* PDF Preview */} {isLoading ? (
) : pdfUrl ? (