@@ -173,7 +174,7 @@ export function RecentTransactions() {
)}
>
{isCredit ? "+" : "−"}
- {formatEurFromCents(Math.abs(t.amount))}
+ {formatCredits(Math.abs(t.amount), locale)}
diff --git a/components/ui/chart.tsx b/components/ui/chart.tsx
new file mode 100644
index 0000000..7b06ddb
--- /dev/null
+++ b/components/ui/chart.tsx
@@ -0,0 +1,166 @@
+"use client";
+
+import * as React from "react";
+import * as RechartsPrimitive from "recharts";
+
+import { cn } from "@/lib/utils";
+
+export type ChartConfig = {
+ [k in string]: {
+ label?: React.ReactNode;
+ color?: string;
+ };
+};
+
+type ChartContextProps = {
+ config: ChartConfig;
+};
+
+const ChartContext = React.createContext