import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'; import Layout from './components/Layout.tsx'; import Dashboard from './pages/Dashboard.tsx'; import StoreDashboard from './pages/StoreDashboard.tsx'; import BaseMenu from './pages/BaseMenu.tsx'; import Products from './pages/Products.tsx'; import Orders from './pages/Orders.tsx'; import ArchivedOrders from './pages/ArchivedOrders.tsx'; import Customers from './pages/Customers.tsx'; import Login from './pages/Login.tsx'; import Managers from './pages/Managers.tsx'; import Stalls from './pages/Stalls.tsx'; import Staff from './pages/Staff.tsx'; import Terminals from './pages/Terminals.tsx'; import Vendors from './pages/Vendors.tsx'; import Purchases from './pages/Purchases.tsx'; import VendorDashboard from './pages/VendorDashboard.tsx'; import PurchaseAnalytics from './pages/PurchaseAnalytics.tsx'; import Bills from './pages/Bills.tsx'; import PurchaseSummary from './pages/PurchaseSummary.tsx'; import IntentDashboard from './pages/IntentDashboard.tsx'; import IntentList from './pages/IntentList.tsx'; import NewArrivals from './pages/NewArrivals.tsx'; import Reports from './pages/Reports.tsx'; import Feedback from './pages/Feedback.tsx'; import Ritz from './pages/Ritz.tsx'; import RitzCirculation from './pages/RitzCirculation.tsx'; import ManageWallets from './pages/ManageWallets.tsx'; import ManageCoupons from './pages/ManageCoupons.tsx'; import Settings from './pages/Settings.tsx'; import NotFound from './pages/NotFound.tsx'; const ProtectedRoute = ({ children }: { children: React.ReactNode }) => { const isLoggedIn = sessionStorage.getItem('isLoggedIn') === 'true'; return isLoggedIn ? <>{children} : ; }; const PlaceholderPage = ({ title }: { title: string }) => (

{title}

This page is under development

We're working hard to bring you the best experience for {title}.

); function App() { return ( } /> }> } /> } /> } /> {/* Sale */} } /> } /> {/* Customers */} } /> {/* Purchases */} } /> } /> } /> } /> } /> } /> {/* Intent */} } /> } /> } /> } /> } /> } /> } /> {/* Inventory */} } /> } /> } /> } /> {/* Expense */} } /> } /> {/* Others */} } /> } /> } /> } /> } /> } /> {/* Stores */} } /> } /> } /> } /> {/* Settings */} } /> } /> ); } export default App;