+
+ {user.first_name[0].toUpperCase()}
+ {user.last_name[0].toUpperCase()}
+
+
+ {user.first_name} {user.last_name}
+
+
)
}
-const NavItemWrapper = s.div`
- display: flex;
- cursor: pointer;
- opacity: 0.8;
-
- &:hover {
- opacity: 1;
- }
-`
-
const NavItem = ({
icon,
title,
@@ -73,47 +41,62 @@ const NavItem = ({
title: string
link: string
}) => {
+ const router = useRouter()
+ const isActive = router.pathname === link
+
return (