"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.numberFormatter = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
function numberFormatter(num) {
    const surplus = num - 3;
    if (surplus > 999999) {
        return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["+", (Math.abs(surplus) / 1000000).toFixed(1), "M"] });
    }
    else if (num > 999) {
        return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["+", (Math.abs(surplus) / 1000).toFixed(1), "K"] });
    }
    return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["+", surplus] });
}
exports.numberFormatter = numberFormatter;
