mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 15:17:48 +02:00
13 lines
326 B
TypeScript
13 lines
326 B
TypeScript
import * as React from "react";
|
|
import { numeralWrapper } from "../../ui/numeralFormat";
|
|
|
|
export function Hashes(hashes: number | string): JSX.Element {
|
|
return (
|
|
<span className={"money-gold samefont"}>
|
|
{typeof hashes === "number"
|
|
? numeralWrapper.formatHashes(hashes)
|
|
: hashes}
|
|
</span>
|
|
);
|
|
}
|