"use client"; import { useRouter } from "next/navigation"; import { clearAuth, getStoredUser } from "@/src/lib/auth"; export function Topbar() { const router = useRouter(); async function handleLogout() { await clearAuth(); router.replace("/login"); } const user = getStoredUser(); return (

لوحة التحكم

{/* English product label intentionally stays LTR-embedded so "Operations dashboard" doesn't get its word order or punctuation reversed by the surrounding RTL run. */} Operations dashboard

{user?.role ?? "—"}
); }