hide leaderboard pp on unranked maps
Some checks failed
Deploy Backend / docker (ubuntu-latest) (push) Successful in 42s
Deploy Website / docker (ubuntu-latest) (push) Has been cancelled

This commit is contained in:
Lee
2024-10-20 19:24:31 +01:00
parent 336518ff70
commit d1a9654e33
7 changed files with 23 additions and 7 deletions

View File

@ -3,11 +3,27 @@ import Tooltip from "@/components/tooltip";
import { formatNumberWithCommas } from "@ssr/common/utils/number-utils";
import { PlayerStatValue } from "@ssr/common/player/player-stat";
// Props for DailyChangeComponent
interface DailyChangeProps {
/**
* The type of change
*/
type: PlayerStatValue;
/**
* The value of the change
*/
change: number | undefined;
/**
* The tooltip to display
*/
tooltip?: React.ReactElement | string;
/**
* The formater for the change
*
* @param value
*/
format?: (value: number) => string;
}