import { UserData } from "../utils/telegram";
import { TelegramAvatar } from "./TelegramAvatar";
interface TelegramUserLinkProps {
u: UserData
}
export function TelegramUser({u}: TelegramUserLinkProps) {
if(u.username) return (
{u.username}
)
else if(u.last_name) return (
{u.first_name} {u.last_name}
)
else return (
{u.first_name}
)
}