'use client'
import { HTMLAttributes } from "react"
import Link from "next/link"
import { cn } from "@/lib/utils"
import { usePathname } from "next/navigation"
import { useSession } from "next-auth/react"
export function MainNav({ className, ...props }: HTMLAttributes) {
const pathname = usePathname()
const { data: session } = useSession()
const getMenuActiveStyle = (path: string) => {
if (pathname?.startsWith(path) && (pathname !== '' && pathname !== '/') && (path !== '' && path !== '/')) {
return 'font-semibold text-primary border-b-[3px] border-his'
} else {
if (path === pathname) {
return 'font-semibold text-primary border-b-[3px] border-his'
}
}
return 'text-muted-foreground'
}
return (
<>
>
)
}