Files
sorsfonalak/services/frontend/src/components/AdminNav.tsx
T

20 lines
507 B
TypeScript
Raw Normal View History

2026-11-17 14:25:08 +00:00
import Link from "next/link";
const PAGES = [
{ href: "/admin", label: "Felhasználók" },
{ href: "/admin/promptok", label: "Promptok" },
];
/** Switches between the admin pages. */
export function AdminNav({ current }: { current: string }) {
return (
<nav className="admin-nav" aria-label="Admin oldalak">
{PAGES.map((p) => (
<Link key={p.href} href={p.href} aria-current={p.href === current ? "page" : undefined}>
{p.label}
</Link>
))}
</nav>
);
}