mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 14:31:13 -05:00
Add notification bell to admin headers
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user