import { useState } from 'react';
import Sidebar from './components/Sidebar';
import AppRoutes from './routes/AppRoutes';

export default function App() {
  const [currentView, setCurrentView] = useState('dashboard');

  return (
    <div className="flex min-h-screen bg-[#F5F5F5]">
      <Sidebar currentView={currentView} onNavigate={setCurrentView} />
      <main className="flex-1 ml-64">
        <div className="p-8">
          <AppRoutes />
        </div>
      </main>
    </div>
  );
}
