import { TelegramLoginData } from "../types/user";
import { TelegramAvatar } from "./TelegramAvatar";
interface Props {
u: TelegramLoginData
}
export function TelegramUserInline({u}: Props) {
if(u.username) return (
{u.username}
)
else if(u.last_name) return (
{u.first_name} {u.last_name}
)
else return (
{u.first_name}
)
}