feat: add new nav item for user sessions

This commit is contained in:
2025-06-15 18:10:31 +02:00
parent c2abf1a5ba
commit b0005c6702

View File

@ -1,5 +1,5 @@
import { useAuth } from "@/store/auth"; import { useAuth } from "@/store/auth";
import { Blocks, Home, User, Users } from "lucide-react"; import { Blocks, Home, User, UserLock, Users } from "lucide-react";
import { useCallback, type ReactNode } from "react"; import { useCallback, type ReactNode } from "react";
import { useLocation } from "react-router"; import { useLocation } from "react-router";
@ -81,6 +81,12 @@ export const useBarItems = (): [Item[], (item: Item) => boolean] => {
tab: "admin.users", tab: "admin.users",
pathname: "/admin/users", pathname: "/admin/users",
}, },
{
icon: <UserLock />,
title: "User Sessions",
tab: "admin.user-sessions",
pathname: "/admin/user-sessions",
},
] ]
: []), : []),
], ],