+
+ {tooltipLabelFormatter ? tooltipLabelFormatter(label) : label}
+
+ {payload.map((p) => {
+ const value = Number(p.value) || 0;
+ const [formattedValue, formattedLabel] =
+ tooltipValuesFormatter
+ ? tooltipValuesFormatter(value, p.dataKey as string)
+ : [value.toLocaleString(), p.dataKey];
+
+ return (
+
+ {formattedLabel}: {formattedValue}
+
+ );
+ })}
+
+ Total TGLD Vested: {total.toLocaleString()}
+
+
+ );
+ }}
+ />
+ {legendFormatter && (
+