"use client"; import Link from "next/link"; import React, { useContext } from "react"; import { usePathname } from "next/navigation"; import Image from "next/image"; import logo from "@img/logo.png"; import AppContext from "@ctx/AppContext"; const NavBAr = (props) => { const usePath = usePathname(); const CTX = useContext(AppContext); const openBigPlus = () => { setTimeout(() => { CTX.setBigPlusRotateIcon(true); }, 500); CTX.setBigPlusOpen(true); }; return (
{/*
*/}
<> {usePath.includes("/home") ? (
) : (
)} <> {usePath.includes("/shifts") ? (
) : (
)}
{ openBigPlus(); }} >
<> {usePath.includes("/employees") ? (
) : (
)} <> {usePath.includes("/routine") ? (
) : (
)}
); }; export default NavBAr;