//Perfilpaciente.jsx
//Nesta página falta: mudar nomes

import { Routes, Route } from "react-router-dom";
import { useState } from "react";

//Components
import Sidebar from "../../components/Sidebar/Sidebar";

//Pages
import LaudoManager from "../../pages/secretaria/CadastroLaudos";
import ConsultaCadastroManager from "../../pages/paciente/CadastroConsulta";
import ConsultasPaciente from "../../pages/paciente/ListaConsulta";
import ConsultaEditPage from "../../pages/paciente/EditarConsulta";

//Data
import PacienteItems from "../../data/sidebar-items-paciente.json";

function PerfilPaciente({ onLogout }) {

const [dadosConsulta, setConsulta] = useState({})
  return (

    <div id="app" className="active">
      <Sidebar onLogout={onLogout} menuItems={PacienteItems} /> 
      
      <div id="main">
        <Routes>
          <Route path="/" element={<LaudoManager />} /> 
          <Route path="agendamento" element={<ConsultasPaciente setConsulta={setConsulta}/>} />
          <Route path="agendamento/criar" element={<ConsultaCadastroManager />} />
          <Route path="agendamento/edit" element={<ConsultaEditPage dadosConsulta={dadosConsulta} />} />
          <Route path="laudo" element={<LaudoManager />} /> 
          <Route path="*" element={<h2>Página não encontrada</h2>} />
        </Routes>
      </div>
    </div>
  );
}

export default PerfilPaciente;