import { Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
export function numberFormatter(num) {
    const surplus = num - 3;
    if (surplus > 999999) {
        return _jsxs(_Fragment, { children: ["+", (Math.abs(surplus) / 1000000).toFixed(1), "M"] });
    }
    else if (num > 999) {
        return _jsxs(_Fragment, { children: ["+", (Math.abs(surplus) / 1000).toFixed(1), "K"] });
    }
    return _jsxs(_Fragment, { children: ["+", surplus] });
}
