"use client"; import { blogPages, homepages, otherPages, servicePages, shopPages, } from "@/data/menu"; import Image from "next/image"; import Link from "next/link"; import { usePathname } from "next/navigation"; import React from "react"; export default function Nav() { const pathname = usePathname(); const isActive = (link) => link.split("/")[1] == pathname.split("/")[1]; const isActiveParent = (links) => links.some((link) => isActive(link.href)); return ( <> {" "}
  • Home
    {homepages.map((item, index) => (
    {item.alt}
    {item.title}
    ))}
    Coming Soon
  • Pages
  • Serivce
  • Blog
  • Contact
  • Shop
  • ); }