//Nesta página falta: mudar nomes

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

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

//Pages
import FinanceiroDashboard from "../../pages/financeiro/DashboardFinanceiro";

//Data
import FinanceiroItems from "../../data/sidebar-items-financeiro.json"; 


function PerfilFinanceiro({ onLogout }) {
  return (
      <div id="app" className="active">
        <Sidebar onLogout={onLogout} menuItems={FinanceiroItems}  />
        <div id="main">
          <Routes>
            <Route path="/" element={<FinanceiroDashboard/>}/>
            <Route path="controlefinanceiro" element={<FinanceiroDashboard/>}/>
            <Route path="*" element={<h2>Página não encontrada</h2>} />
          </Routes>
        </div>
      </div>
  );
}

export default PerfilFinanceiro;
