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

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

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

//Pages
import TablePaciente from "../../pages/secretaria/ListaPacientes";
import PatientCadastroManager from "../../pages/secretaria/CadastroPaciente";
import DoctorCadastroManager from "../../pages/secretaria/CadastroMedico";
import DoctorTable from "../../pages/secretaria/ListaMedicos";
import Agendamento from "../../pages/secretaria/ListaAgendamentos";
import LaudoManager from "../../pages/secretaria/ListaLaudos";
import Details from "../../pages/secretaria/DetalhesPaciente";
import EditPage from "../../pages/secretaria/EditarPaciente";
import DoctorDetails from "../../pages/secretaria/DetalhesMedico";
import DoctorEditPage from "../../pages/secretaria/EditarMedico";
import UserDashboard from '../../pages/admin/DashboardUsuarios';
import PainelAdministrativo from '../../pages/admin/PainelAdmin';

//Data
import admItems from "../../data/sidebar-items-adm.json";

function Perfiladm() {

  const [DictInfo, setDictInfo] = useState({})

	return (
    
      <div id="app" className="active">
       <Sidebar menuItems={admItems} />
        <div id="main">
          <Routes>
            <Route path="/" element={<UserDashboard />} />
            <Route path="/pacientes/cadastro" element={<PatientCadastroManager />} />
            <Route path="/medicos/cadastro" element={<DoctorCadastroManager />} />
            <Route path="/pacientes" element={<TablePaciente setDictInfo={setDictInfo}/>} />
            <Route path="/medicos" element={<DoctorTable setDictInfo={setDictInfo} />} />
            <Route path="/pacientes/details" element={<Details DictInfo={DictInfo} />} />
            <Route path="/pacientes/edit" element={<EditPage DictInfo={DictInfo} />} />
            <Route path="/medicos/details" element={<DoctorDetails DictInfo={DictInfo}/>} />
            <Route path="/medicos/edit" element={<DoctorEditPage DictInfo={DictInfo}/>} />
            <Route path="/agendamento" element={<Agendamento />} />
            <Route path="/laudo" element={<LaudoManager />} />
            
            <Route path="/gestao" element={<UserDashboard />} />
            <Route path="/painel" element={<PainelAdministrativo />} />
            <Route path="*" element={<h2>Página não encontrada</h2>} />
          </Routes>
        </div>
      </div>
    
  );
}

export default Perfiladm;