⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
import { useQuery } from "@tanstack/react-query";
import { getAdminUserSessions } from "@/fetchers/admin/get-admin-user-sessions";
export function adminUserSessionsQueryKey(userId: string) {
return ["admin", "user-sessions", userId] as const;
}
function useAdminUserSessions(userId: string, enabled = true) {
return useQuery({
refetchOnMount: "always",
queryKey: adminUserSessionsQueryKey(userId),
queryFn: () => getAdminUserSessions(userId),
enabled: enabled && userId !== "",
});
}
export default useAdminUserSessions;