diff --git a/src/components/Chatbot.tsx b/src/components/Chatbot.tsx index 3c4c108ea..e4658c52c 100644 --- a/src/components/Chatbot.tsx +++ b/src/components/Chatbot.tsx @@ -132,7 +132,7 @@ const Chatbot: React.FC = ({ className = "" }) => { }; return ( -
+
{/* Floating Button */} {!isOpen && (
+
+ + +
+
+ + {/* Modal de Detalhes do Laudo */} + {showLaudoModal && selectedLaudo && ( +
+
+
+

+ Detalhes do Laudo +

+ +
+ +
+ {/* Informações Básicas */} +
+
+ +

+ {selectedLaudo.order_number} +

+
+
+ +

+ {new Date(selectedLaudo.created_at).toLocaleDateString("pt-BR", { + day: "2-digit", + month: "long", + year: "numeric" + })} +

+
+
+ + + {selectedLaudo.status === "completed" + ? "Concluído" + : selectedLaudo.status === "pending" + ? "Pendente" + : selectedLaudo.status === "cancelled" + ? "Cancelado" + : "Rascunho"} + +
+
+ +

+ {selectedLaudo.requested_by || "-"} +

+
+
+ + {/* Exame */} + {selectedLaudo.exam && ( +
+ +

+ {selectedLaudo.exam} +

+
+ )} + + {/* Código CID */} + {selectedLaudo.cid_code && ( +
+ +

+ {selectedLaudo.cid_code} +

+
+ )} + + {/* Diagnóstico */} + {selectedLaudo.diagnosis && ( +
+ +

+ {selectedLaudo.diagnosis} +

+
+ )} + + {/* Conclusão */} + {selectedLaudo.conclusion && ( +
+ +

+ {selectedLaudo.conclusion} +

+
+ )} +
+ +
+ +
+
+
+ )}
);