import { Navigate, Route, Routes } from 'react-router-dom' // Auth import { LoginPage } from '@/pages/auth/Login' import { ForgotPasswordPage } from '@/pages/auth/ForgotPassword' import { RegisterPage } from '@/pages/auth/Register' // Marketplace import { CartPage } from '@/pages/marketplace/Cart' import { CheckoutPage } from '@/pages/marketplace/Checkout' import { OrdersPage as UserOrdersPage } from '@/pages/marketplace/Orders' import { OrderDetailsPage } from '@/pages/marketplace/OrderDetails' import ProductSearch from '@/pages/marketplace/ProductSearch' // Seller dashboard import { SellerDashboardPage } from '@/pages/dashboard/seller/SellerDashboard' import { InventoryPage } from '@/pages/dashboard/seller/Inventory' import { ProductCreatePage } from '@/pages/dashboard/seller/ProductCreate' import { WalletPage } from '@/pages/dashboard/seller/Wallet' import { TeamPage } from '@/pages/dashboard/seller/Team' // Other role dashboards import { EmployeeDashboardPage } from '@/pages/dashboard/employee/EmployeeDashboard' import { DeliveryDashboardPage } from '@/pages/dashboard/delivery/DeliveryDashboard' // Shared dashboard pages import { CompanyPage } from '@/pages/dashboard/Company' import { MyProfilePage } from '@/pages/dashboard/MyProfile' // Admin dashboard import { DashboardHome, UsersPage, CompaniesPage, ProductsPage, OrdersPage, ReviewsPage, LogisticsPage, ProfilePage, ShippingSettingsPage, } from '@/pages/dashboard/admin' // Shared UI import { ProtectedRoute } from '@/components/ProtectedRoute' import { DashboardLayout } from '@/layouts/DashboardLayout' function App() { return ( } /> } /> } /> {/* Admin Dashboard with Header Layout */} } > } /> } /> } /> } /> } /> } /> } /> } /> {/* Legacy admin route - redirect to dashboard */} } /> {/* Owner / Seller Dashboard */} } /> {/* Employee (Colaborador) Dashboard */} } /> {/* Delivery (Entregador) Dashboard */} } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> {/* Product Search - Buy from other pharmacies */} } /> {/* Shipping Settings - for Sellers */} } /> {/* Team Management */} } /> {/* Order Details Timeline */} } /> } /> ) } export default App