import { formatUnits } from "viem";

export const formatValue = (value: bigint | string, decimals: number) => {
	if (value) {
		const _value = BigInt(value);
		return formatUnits(_value, decimals).toString();
	}
	return "";
};
