'use client' import React from 'react' import {NAV_ITEMS} from "@/lib/constants"; import Link from "next/link"; import {usePathname} from "next/navigation"; import SearchCommand from "@/components/SearchCommand"; const NavItems = ({initialStocks}: { initialStocks: StockWithWatchlistStatus[]}) => { const pathname = usePathname() const isActive = (path: string) => { if (path ==='/') return pathname === '/' return pathname.startsWith(path); } return ( ) } export default NavItems