//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/CadastroLaudos";
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/UserDashboard';
import PainelAdministrativo from '../../pages/admin/PainelAdmin';

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

function PerfilAdmin() {
  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 />} />
            <Route path="/pacientes/:id" element={<Details DictInfo={DictInfo} />} />
            <Route path="/pacientes/:id/edit" element={<EditPage DictInfo={DictInfo} />} />
            <Route path="/medicos/:id" element={<DoctorDetails />} />
            <Route path="/medicos/:id/edit" element={<DoctorEditPage />} />
            <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 PerfilAdmin;