@@ -101,9 +99,17 @@ export function Sidebar() {
{item.items.length ? (
@@ -150,12 +160,17 @@ export function Sidebar() {
: "/" +
item.title.toLowerCase().split(" ").join("-");
+ const isActive =
+ href === "/"
+ ? pathname === href
+ : pathname.startsWith(href);
+
return (