import { type ExtendedUser } from '@/config/auth' import { Card, CardContent, CardHeader } from '@/components/ui/card' import { Badge } from '@/components/ui/badge' interface UserInfoProps { user?: ExtendedUser label: string } export const UserInfo = ({ user, label }: UserInfoProps) => { return (

{label}

ID {user?.id}
Name {user?.name}
Email {user?.email}
Role {user?.role}
Two factor authentication {user?.isTwoFactorEnabled ? 'ON' : 'OFF'}
) }