diff --git a/src/App.tsx b/src/App.tsx index 3b8ad1b..e540610 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -27,6 +27,24 @@ function ProtectedRoute({ children }: { children: React.ReactNode }) { return <>{children}> } +function AdminRoute({ children }: { children: React.ReactNode }) { + const { user, loading } = useAuth() + + if (loading) { + return
- User administration interface coming soon... -
++ This is the name displayed throughout the application +
++ Current plan: {editingUser.plan.name} +
++ Maximum allowed: {editingUser.plan.max_credits.toLocaleString()} +
+