Sootzani/components/NavbarPanel.tsx

41 lines
1.4 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="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
">
{/* <p>Current pathname: {pathname}</p> */}
<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>
);
})}
</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>
);
}