import {Button, Modal, Row, Typography, Spin, Splitter, Divider} from "antd"; import useAppointmentView from "./useAppointmentView.js"; const AppointmentViewModal = () => { const { modalWidth, blockStyle, footerRowStyle, footerButtonStyle, labels, selectedAppointment, visible, getDateString, getAppointmentTime, getPatientName, getPatientField, getResults, onCancel, files, isFilesLoading, downloadingFiles, downloadFile, } = useAppointmentView(); if (!selectedAppointment) { return null; } return (
Информация о приеме

{labels.patient} {getPatientName(selectedAppointment.patient)}

{labels.birthday}{" "} {getDateString(selectedAppointment.patient?.birthday)}

{labels.email}{" "} {getPatientField(selectedAppointment.patient?.email)}

{labels.phone}{" "} {getPatientField(selectedAppointment.patient?.phone)}

{labels.type}{" "} {getPatientField(selectedAppointment.type?.title)}

{labels.appointmentTime}{" "} {getAppointmentTime(selectedAppointment.appointment_datetime)}

{labels.daysUntilNext}{" "} {getPatientField(selectedAppointment.days_until_the_next_appointment)}

{labels.results}

{labels.files}

{isFilesLoading ? ( ) : files.length > 0 ? ( files.map((file) => ( {file.file_title || labels.notSpecified} )) ) : (

{labels.noFiles}

)}
); }; export default AppointmentViewModal;