import Image from "next/image"; import Link from "next/link"; import { CachedPlayer, SkinPart } from "restfulmc-lib"; import { ReactElement } from "react"; import { Badge } from "@/components/ui/badge"; import config from "@/config"; /** * The result of a player search. * * @param player the player to display * @returns the player result jsx */ const PlayerResult = ({ player: { uniqueId, username, skin: { parts }, legacy, }, }: { player: CachedPlayer; }): ReactElement => (
{uniqueId}
{/* Legacy Badge */}
{legacy && (
Legacy
)}