/** * App.tsx - Router Configuration Example * * This is an example App.tsx showing how to integrate the auth pages * Copy this content to your App.tsx after installing dependencies * * Dependencies required: * npm install zod @hookform/resolvers */ import React from 'react'; import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom'; import { AuthProvider } from '@/app/providers/AuthContext'; import { LoginPage, RegisterPage, ForgotPasswordPage } from '@/pages/auth'; import ProtectedRoute from '@/shared/components/ProtectedRoute'; import { useAuth } from '@/app/providers/AuthContext'; /** * Temporary Dashboard Component * Replace this with your actual Dashboard component */ const DashboardPage: React.FC = () => { const { user, logout } = useAuth(); return (

Dashboard

Welcome to GAMILIT!

You are successfully logged in as: {user?.email}

User ID

{user?.id}

Role

{user?.role}

Status

{user?.isActive ? 'Active' : 'Inactive'}

); }; /** * Main App Component */ function App() { return ( {/* Public Routes - Authentication */} } /> } /> } /> {/* Protected Routes */} } /> {/* Role-based protected route example */} {/* } /> */} {/* Default Route - Redirect to login */} } /> {/* 404 Not Found - Redirect to login */} } /> ); } export default App;