import { Route, Routes, Navigate } from "react-router-dom"; import SignInPage from "../application/Authentication/SignInPage"; import SignUpPage from "../application/Authentication/SignUpPage"; import ResetPasswordPage from "../application/Authentication/ResetPasswordPage"; import Dashboard from "../application/dashboard/Dashboard"; import ProfilePage from "../application/profile/ProfilePage"; import ProtectedRoutes from "./ProtectedRoutes"; const AppRoutes = () => { return ( {/* Public Routes */} } /> } /> } /> {/* Protected Routes */} }> } /> } /> {/* Redirect root to dashboard if logged in (ProtectedRoutes handles auth check usually, or we redirect to signin if not) */} } /> {/* Catch all - Redirect to dashboard which will handle auth or show dashboard */} } /> ); }; export default AppRoutes;