import { Flex, Paper, Text } from "@mantine/core"; import { VerifiedBadge } from "../VerifiedBadge/VerifiedBadge"; import { ActionAvatar } from "../ActionAvatar/ActionAvatar"; interface ProfileCardProps { title: string; publicKey: string; username: string; verified: number; } export function ProfileCard(props : ProfileCardProps) { return ( {props.title.trim() || props.publicKey.slice(0, 10)} {props.verified > 0 && } {props.username.trim() == "" ? "" : "@" + props.username + " •"} {props.publicKey.slice(0, 3) + "..." + props.publicKey.slice(-3)} ); }