Add notification bell to admin headers

This commit is contained in:
gpt-engineer-app[bot]
2025-10-01 13:25:05 +00:00
parent 549b964b60
commit 0629a399a2

View File

@@ -3,10 +3,13 @@ import { Button } from '@/components/ui/button';
import { Link, useLocation } from 'react-router-dom';
import { ThemeToggle } from '@/components/theme/ThemeToggle';
import { AuthButtons } from '@/components/auth/AuthButtons';
import { NotificationCenter } from '@/components/notifications/NotificationCenter';
import { useUserRole } from '@/hooks/useUserRole';
import { useAuth } from '@/hooks/useAuth';
export function AdminHeader({ onRefresh }: { onRefresh?: () => void }) {
const { permissions } = useUserRole();
const { user } = useAuth();
const location = useLocation();
const isSettingsPage = location.pathname === '/admin/settings';
@@ -57,6 +60,7 @@ export function AdminHeader({ onRefresh }: { onRefresh?: () => void }) {
</Button>
)}
<ThemeToggle />
{user && <NotificationCenter />}
<AuthButtons />
</div>
</div>