import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { useAuth } from '@/hooks/use-auth' export function AdminUsersPage() { const { user } = useAuth() // Mock user data - in real app this would come from API const users = [ { id: '1', name: 'John Doe', email: 'john@example.com', role: 'admin', is_active: true, providers: ['password', 'google'], created_at: '2024-01-15T10:30:00Z' }, { id: '2', name: 'Jane Smith', email: 'jane@example.com', role: 'user', is_active: true, providers: ['github'], created_at: '2024-01-20T14:15:00Z' }, { id: '3', name: 'Bob Wilson', email: 'bob@example.com', role: 'user', is_active: false, providers: ['password'], created_at: '2024-01-25T09:45:00Z' } ] if (user?.role !== 'admin') { return (
{userData.email}
Registered users
Currently active
Administrator accounts