"use client";
import { useI18n } from "@/components/I18nProvider";
import Link from "next/link";
import { ArrowRight } from "lucide-react";
import { PixelTrophy, PlayerAvatar } from "./PixelArt";
import {
type LeaderboardData,
type LeaderboardEntry,
} from "@/shared/leaderboard";
export function LeaderboardEmpty({
unavailable = false,
search = false,
}: {
unavailable?: boolean;
search?: boolean;
}) {
const { t } = useI18n();
return (
{unavailable
? t("The scoreboard is taking a break.")
: search
? t("No explorers found.")
: t("The first place is still open.")}
{unavailable
? t("We couldn’t load the scores. Try again in a moment.")
: search
? t("Try another player name or clear your search.")
: t("Log in and finish five rounds to put your name on the board.")}