'use client' /** * Alerts Monitoring Admin Page * * Google Alerts & Feed-Ueberwachung Dashboard * Provides inbox management, topic configuration, rule builder, and relevance profiles */ import { useState } from 'react' import AdminLayout from '@/components/admin/AdminLayout' import SystemInfoSection from '@/components/admin/SystemInfoSection' import type { TabId } from './_components/types' import { useAlertsData } from './_components/useAlertsData' import { alertsSystemConfig } from './_components/alertsSystemConfig' import DashboardTab from './_components/DashboardTab' import InboxTab from './_components/InboxTab' import TopicsTab from './_components/TopicsTab' import RulesTab from './_components/RulesTab' import ProfileTab from './_components/ProfileTab' import DocumentationTab from './_components/DocumentationTab' export default function AlertsPage() { const [activeTab, setActiveTab] = useState('dashboard') const { stats, alerts, topics, rules, profile, error, inboxFilter, setInboxFilter, filteredAlerts, } = useAlertsData() const tabs: { id: TabId; label: string; badge?: number }[] = [ { id: 'dashboard', label: 'Dashboard' }, { id: 'inbox', label: 'Inbox', badge: stats?.new_alerts || 0 }, { id: 'topics', label: 'Topics' }, { id: 'rules', label: 'Regeln' }, { id: 'profile', label: 'Profil' }, { id: 'audit', label: 'Audit' }, { id: 'documentation', label: 'Dokumentation' }, ] return ( {/* Tab Navigation */}
{activeTab === 'dashboard' && ( )} {activeTab === 'inbox' && ( )} {activeTab === 'topics' && } {activeTab === 'rules' && } {activeTab === 'profile' && } {activeTab === 'audit' && } {activeTab === 'documentation' && }
) }