"use client" import { useParams, usePathname } from "next/navigation" import { signout } from "@lib/data/customer" import { HttpTypes } from "@medusajs/types" import LocalizedClientLink from "@modules/common/components/localized-client-link" import { cn } from "@/lib/utils" const NAV_LINKS = [ { href: "/account", label: "Pregled" }, { href: "/account/profile", label: "Profil" }, { href: "/account/addresses", label: "Adrese" }, { href: "/account/orders", label: "Narudžbe" }, ] /** Account tabs, same pill style as the catalog category tabs */ const AccountNav = ({ customer: _customer }: { customer: HttpTypes.StoreCustomer | null }) => { const route = usePathname() const { countryCode } = useParams() as { countryCode: string } const isActive = (href: string) => { const full = `/${countryCode}${href}` // Order details live under /account/orders/details/... return href === "/account" ? route === full : route.startsWith(full) } return ( ) } export default AccountNav