first commit

This commit is contained in:
dev-chiefworks
2024-01-10 11:05:21 -05:00
commit 2ce13271d8
1398 changed files with 91003 additions and 0 deletions
@@ -0,0 +1,21 @@
'use client'
import Link from "next/link";
import React, { useEffect } from 'react'
import { usePathname } from "next/navigation";
export default function MenuLinkTwo({val,setCurrentTopRoute,topMenu}) {
const pathname = usePathname();
useEffect(() => {
if (pathname.split('/')[1] == val.routerPath.split('/')[1]) {
setCurrentTopRoute(topMenu)
}
}, [])
return (
<Link href={val.routerPath} className={pathname.split('/')[1] == val.routerPath.split('/')[1] ? "dropdown-item activeMenu":'dropdown-item'}>
{val.name}
</Link>
)
}