Defines all the application's routes using React Router.
It handles public routes, role-based protected routes, and a 404 catch-all page.
It also utilizes lazy loading with a Suspense fallback to improve initial load performance.
Returns Element
The main router configuration for the application.
Defines all the application's routes using React Router. It handles public routes, role-based protected routes, and a 404 catch-all page. It also utilizes lazy loading with a Suspense fallback to improve initial load performance.