import React from 'react'; import { User, Shield, UserRound } from 'lucide-react'; import { useLanguage } from '../contexts/LanguageContext'; interface UserInfoDisplayProps { currentUser: any; } export const UserInfoDisplay: React.FC = ({ currentUser }) => { const { t } = useLanguage(); if (!currentUser) { return null; } return (
{currentUser.isAdmin && (
)}

{currentUser.displayName || currentUser.username}

{currentUser.isAdmin && ( {t('admin')} )}

ID: {currentUser.id?.substring(0, 8)}...

); };