import { Link } from "@tanstack/react-router";
import { ChevronLeft, PlusCircle } from "lucide-react";
import { Logo } from "./Loader";

export function GameTopBar({ className = "bg-lobby" }: { className?: string }) {
  return (
    <div className={`flex items-center justify-between px-2 py-2 ${className}`}>
      <Link to="/" aria-label="Back to lobby" className="grid size-8 place-items-center rounded-full bg-foreground/10">
        <ChevronLeft className="size-5" />
      </Link>
      <Logo className="text-lg" />
      <Link to="/" className="flex items-center gap-1 rounded-full bg-gold px-3 py-1.5 text-xs font-bold text-gold-foreground">
        <PlusCircle className="size-3.5" /> DEPOSIT
      </Link>
    </div>
  );
}
