import { BrowserRouter } from 'react-router-dom';
import { App as AntApp } from 'antd';
import AppRoutes from './routes';
import AppLayout from './components/layout/AppLayout';
import ProtectedRoute from './components/auth/ProtectedRoute';

function App() {
  return (
    <AntApp>
      <BrowserRouter>
        <ProtectedRoute>
          <AppLayout>
            <AppRoutes />
          </AppLayout>
        </ProtectedRoute>
      </BrowserRouter>
    </AntApp>
  );
}

export default App;
