-
KI Assistent
+
+ {aiSidebarTab === 'notifications' ? t('topbar.notifications') : 'KI Assistent'}
+
{tabBar}
diff --git a/frontend/src/components/layout/TopBar.tsx b/frontend/src/components/layout/TopBar.tsx
index cfd9d23..fd24ac6 100644
--- a/frontend/src/components/layout/TopBar.tsx
+++ b/frontend/src/components/layout/TopBar.tsx
@@ -6,7 +6,6 @@ import { useAuthStore } from '@/store/authStore';
import { useUIStore } from '@/store/uiStore';
import { useLogout } from '@/api/hooks';
import { Avatar } from '@/components/ui/Avatar';
-import { Badge } from '@/components/ui/Badge';
import { SearchDropdown } from '@/components/shared/SearchDropdown';
import { SuggestionBadge } from '@/components/ai/SuggestionBadge';
@@ -19,19 +18,11 @@ export function TopBar() {
const logoutMutation = useLogout();
const [userMenuOpen, setUserMenuOpen] = useState(false);
- const [notifOpen, setNotifOpen] = useState(false);
- const [notifications, setNotifications] = useState([
- 'Neuer Kontakt hinzugefügt: Max Mustermann',
- 'Firma aktualisiert: TechCorp GmbH',
- 'Meeting um 14:00 Uhr mit Müller AG',
- ]);
const userRef = useRef
(null);
- const notifRef = useRef(null);
useEffect(() => {
const handleClickOutside = (e: MouseEvent) => {
if (userRef.current && !userRef.current.contains(e.target as Node)) setUserMenuOpen(false);
- if (notifRef.current && !notifRef.current.contains(e.target as Node)) setNotifOpen(false);
};
document.addEventListener('mousedown', handleClickOutside);
return () => document.removeEventListener('mousedown', handleClickOutside);
@@ -91,47 +82,6 @@ export function TopBar() {
- {/* Notifications */}
-
-
- {notifOpen && (
-
-
-
{t('topbar.notifications')}
-
-
- {notifications.length === 0 && (
- - Keine Benachrichtigungen
- )}
- {notifications.map((msg, i) => (
- -
- {msg}
-
-
- ))}
-
-
- )}
-
-
{/* User menu */}