Sootzani/components/NavbarPanel.tsx

34 lines
1.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import React from "react";
import Link from "next/link";
import { ControllerMenuItems } from "@/constants";
export default function NavbarPanel() {
return (
<div className="absolute flex justify-between items-center w-full px-8 py-2 z-10 bg-blue max-md:px-0 max-md:justify-end ">
{/* <p>Current pathname: {pathname}</p> */}
<div className="flex items-center gap-10">
<div className=" flex items-center gap-3 md:ml-4">
<p className="text-white inline-block bg-clip-text text-lg max-md:text-base">
پنل کاربری |
</p>
{ControllerMenuItems.map((item) => {
return (
<Link key={item.id} href={item.href}>
<p className="text-white text-sm font-normal ">{item.name}</p>
</Link>
);
})}
</div>
</div>
<h1
className="text-white inline-block bg-clip-text before:max-md:hidden"
>
نام و نام خانوادگی (بازرس)
</h1>
</div>
);
}