Add questions nav links and admin unread badge

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-19 13:49:18 +05:00
parent d2362a3f1e
commit bd1e77c2a3
5 changed files with 40 additions and 5 deletions
+3 -1
View File
@@ -4,9 +4,11 @@ import { LogoutButton } from "@/components/layout/logout-button";
export function AdminShell({
children,
userName,
questionsBadge = 0,
}: {
children: React.ReactNode;
userName: string;
questionsBadge?: number;
}) {
return (
<div className="min-h-screen flex">
@@ -23,7 +25,7 @@ export function AdminShell({
</p>
</div>
<nav className="flex-1 px-2 py-4 space-y-0.5 overflow-y-auto">
<AdminNav />
<AdminNav questionsBadge={questionsBadge} />
</nav>
<div className="px-4 py-4" style={{ borderTop: "2px solid var(--sidebar-border)" }}>
<p className="text-xs mb-3 truncate" style={{ color: "var(--sidebar-text)" }}>