55 lines
1.8 KiB
TypeScript
55 lines
1.8 KiB
TypeScript
"use client";
|
||
import React from "react";
|
||
import Link from "next/link";
|
||
import { AdminMenuItems, ControllerMenuItems } from "@/constants";
|
||
import { usePathname } from "next/navigation";
|
||
|
||
export default function NavbarPanel() {
|
||
const pathname = usePathname();
|
||
|
||
return (
|
||
<div className="fixed flex flex-col-reverse justify-between items-start gap-3
|
||
sm:flex-row sm:items-center sm:gap-0
|
||
w-full px-8 py-2 z-10 bg-blue max-md:px-4
|
||
">
|
||
|
||
<div className=" flex items-center gap-8 max-md:gap-4">
|
||
|
||
<p className="text-white inline-block bg-clip-text text-lg font-bold max-md:text-base max-md:font-medium">
|
||
پنل کاربری |
|
||
</p>
|
||
|
||
<div className="flex flex-row gap-7 max-md:gap-3">
|
||
|
||
{/* {ControllerMenuItems.map((item) => {
|
||
return (
|
||
<Link key={item.id} href={item.href}>
|
||
<p className="text-white font-normal text-sm max-md:text-xs
|
||
hover:bg-white/50 rounded-sm p-1
|
||
animate-out duration-300 ">{item.name}</p>
|
||
</Link>
|
||
);
|
||
})} */}
|
||
|
||
{AdminMenuItems.map((item) => {
|
||
return (
|
||
<Link key={item.id} href={item.href}>
|
||
<p className="text-white font-normal text-sm max-md:text-xs
|
||
hover:bg-white/50 rounded-sm p-1
|
||
animate-out duration-300 ">{item.name}</p>
|
||
</Link>
|
||
);
|
||
})}
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
<h1 className="text-white inline-block bg-clip-text before:max-md:hidden text-sm font-bold max-md:text-xs max-md:font-medium">
|
||
نام و نام خانوادگی (بازرس)
|
||
</h1>
|
||
|
||
</div>
|
||
);
|
||
}
|