CompletedState.tsx 1.0 KB

1234567891011121314151617181920212223242526272829
  1. import { FileText } from "lucide-react";
  2. interface CompletedStateProps {
  3. isGeneratingReport: boolean;
  4. }
  5. export const CompletedState = ({ isGeneratingReport }: CompletedStateProps) => {
  6. return (
  7. <div className="text-center py-12">
  8. <div className="w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4">
  9. {isGeneratingReport ? (
  10. <div className="w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"></div>
  11. ) : (
  12. <FileText className="w-8 h-8 text-primary" />
  13. )}
  14. </div>
  15. <h3 className="text-xl font-semibold text-foreground mb-2">
  16. {isGeneratingReport
  17. ? "Generando Reporte Médico"
  18. : "Consulta Completada"}
  19. </h3>
  20. <p className="text-muted-foreground">
  21. {isGeneratingReport
  22. ? "Estamos procesando tu consulta y generando un reporte médico personalizado."
  23. : "Tu consulta ha sido completada. El reporte médico ha sido generado y guardado."}
  24. </p>
  25. </div>
  26. );
  27. };