+
+
-
- {
- return cn(
- "hover:bg-slate-200 hover:text-blue-800 py-3 px-8 rounded-full",
- [isActive ? "text-blue-800" : ""]
- );
- }}
- >
- Swap
-
-
-
- {
- return cn(
- "hover:bg-slate-200 hover:text-blue-800 py-3 px-8 rounded-full",
- [isActive ? "text-blue-800" : ""]
- );
- }}
- >
- Pools
-
-
+ {ROUTES.map(({ path, label, isIndex, icon: Icon }) => (
+
+
+ cn(
+ "hover:text-blue-800 py-3 px-8 rounded-full",
+ isActive && "text-blue-800 bg-slate-200"
+ )
+ }
+ >
+ {' '}{label}
+
+
+ ))}
diff --git a/yarn.lock b/yarn.lock
index d21b626..e7fbf7b 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -545,6 +545,11 @@
"@radix-ui/react-primitive" "2.0.0"
"@radix-ui/react-use-callback-ref" "1.1.0"
+"@radix-ui/react-icons@^1.3.2":
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-icons/-/react-icons-1.3.2.tgz#09be63d178262181aeca5fb7f7bc944b10a7f441"
+ integrity sha512-fyQIhGDhzfc9pK2kH6Pl9c4BDJGfMkPqkyIgYDthyNYoNg3wVhoJMMh19WS4Up/1KMPFVpNsT2q3WmXn2N1m6g==
+
"@radix-ui/react-id@1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-1.1.0.tgz#de47339656594ad722eb87f94a6b25f9cffae0ed"