'use client' import { Badge } from '@thedaviddias/design-system/badge' import { Github, User as UserIcon } from 'lucide-react' import { Card } from '@/components/ui/card' interface UserData { id: string email?: string user_metadata?: { github_username?: string user_name?: string } } interface AccountInfoProps { user: UserData | null hasGitHubAuth: boolean displayName: string accountType: string } /** * Account information display component * * @param props - Component props * @returns React component */ export function AccountInfo({ user, hasGitHubAuth, displayName, accountType }: AccountInfoProps) { return (

Account Information

{hasGitHubAuth ? ( ) : ( )}

{displayName}

{user?.email}

{accountType} Account {hasGitHubAuth && ( GitHub )}
) }