Skip to content

Instantly share code, notes, and snippets.

View myogeshchavan9's full-sized avatar

myogeshchavan9

View GitHub Profile
@myogeshchavan9
myogeshchavan9 / users.json
Last active July 16, 2025 04:21
Users List
[
{
"id": 1,
"full_name": "Bruce Hodges"
},
{
"id": 2,
"full_name": "Barbara Cook"
},
{
import { logoutUser } from "@/api/authApi";
import { menuItems } from "@/utils/constant";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { useEffect, useState } from "react";
import { Link, useLocation, useNavigate } from "react-router-dom";
import { toast } from "sonner";
const Navigation = ({ setOpen }) => {
const [currentIndex, setCurrentIndex] = useState(-1);
const { pathname } = useLocation();