first commit

This commit is contained in:
CHIEFSOFT\ameye
2025-02-12 23:25:43 -05:00
commit d8c7ec4866
1400 changed files with 90826 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
'use client'
import Link from "next/link";
import React, { useEffect } from 'react'
import { usePathname } from "next/navigation";
export default function MenuLink({val,setCurrentTopRoute,topMenu}) {
const pathname = usePathname();
useEffect(() => {
if (pathname.split('/')[1] == val.routerPath.split('/')[1]) {
setCurrentTopRoute(topMenu)
}
}, [])
return (
<li >
<Link href={val.routerPath} className={pathname.split('/')[1] == val.routerPath.split('/')[1] ? "dropdown-item active":'dropdown-item'}>
{val.name}
</Link>
</li>
)
}