feat: Update NavigationBar to accept host as a prop and wrap in Suspense

This commit is contained in:
AmirReza Jamali
2025-11-18 16:28:27 +03:30
parent 4839c325a5
commit c66fa85075
2 changed files with 10 additions and 4 deletions
+3 -2
View File
@@ -2,14 +2,15 @@
import Link from "next/link";
import { usePathname } from "next/navigation";
const NavigationBar = () => {
const NavigationBar = ({ host }: { host: string }) => {
const pathname = usePathname();
return (
<nav className="my-5">
<ul className="flex flex-row-reverse items-center gap-12">
<li>
<Link
href={"https://app.opplens.com"}
href={`https://app.${host}`}
className="cursor-pointer bg-(--primary) text-white py-5 px-12 rounded-full"
target="_blank">
Login