"use client";

import { usePathname } from "next/navigation";
import Navbar from "./Navbar";

export default function RouteAwareNavbar() {
  const pathname = usePathname();
  const isDigitalRoute = /^\/(zh|en)\/digital(?:\/|$)/.test(pathname);

  if (isDigitalRoute) {
    return null;
  }

  return <Navbar />;
}
