import React, { useEffect, useState } from "react"; import avatarPlaceholder from '../assets/images/avatar_placeholder.png'; import { useParams,Link, useNavigate, useLocation } from "react-router-dom"; import { GetDoctorByID } from "../components/utils/Functions-Endpoints/Doctor"; import { useAuth } from "../components/utils/AuthProvider"; const DoctorDetails = ({DictInfo}) => { const {getAuthorizationHeader} = useAuth(); const Parametros = useParams() const navigate = useNavigate(); const location = useLocation(); const navigateEdit = () => { const prefixo = location.pathname.split("/")[1]; navigate(`/${prefixo}/medicos/edit`); } const Voltar = () => { const prefixo = location.pathname.split("/")[1]; navigate(`/${prefixo}/medicos`); } return ( <>

MediConnect


{DictInfo.full_name || "Nome Completo"}

{DictInfo.cpf || "CPF"}

{/* ------------------ DADOS PESSOAIS ------------------ */}
Dados Pessoais

{DictInfo.full_name || "-"}

{DictInfo.birth_date || "-"}

{DictInfo.cpf || "-"}

{DictInfo.crm || "-"}

{DictInfo.crm_uf || "-"}

{DictInfo.specialty || "-"}

{/* ------------------ ENDEREÇO ------------------ */}
Endereço

{DictInfo.cep || "-"}

{DictInfo.street || "-"}

{DictInfo.neighborhood || "-"}

{DictInfo.city || "-"}

{DictInfo.state || "-"}

{DictInfo.number || "-"}

{DictInfo.complement || "-"}

{/* ------------------ CONTATO ------------------ */}
Contato

{DictInfo.email || "-"}

{DictInfo.phone_mobile || "-"}

{DictInfo.phone2 || "-"}

); }; export default DoctorDetails;