/** Rows of ranked entries (rank, avatar, weapon, name, power) for the leaderboards and X Rank top search pages. */ import clsx from "clsx"; import type * as React from "react"; import { Link } from "react-router"; import { WeaponImage } from "~/components/Image"; import type { MainWeaponId } from "~/modules/in-game-lists/types"; import styles from "./RankTable.module.css"; export function RankTable({ children }: { children: React.ReactNode }) { return
{children}
; } export function RankTableRow({ to, testId, children, }: { /** when given the row is a link to the entry's own page */ to?: string; testId?: string; children: React.ReactNode; }) { if (!to) { return
{children}
; } return ( {children} ); } /** Row that separates the rows above and below it, e.g. to mark a cutoff point */ export function RankTableDividerRow({ children, }: { children: React.ReactNode; }) { return
{children}
; } export function RankTableInnerRow({ children }: { children: React.ReactNode }) { return
{children}
; } export function RankTableRank({ children }: { children: React.ReactNode }) { return
{children}
; } export function RankTableWeaponImage({ weaponSplId, }: { weaponSplId: MainWeaponId; }) { return ( ); }