'use client' /** * Middleware Configuration Admin Page * * Manage middleware settings for BreakPilot: * - Enable/disable middlewares * - Configure rate limits * - Manage IP whitelist/blacklist * - View middleware events and statistics */ import AdminLayout from '@/components/admin/AdminLayout' import SystemInfoSection, { SYSTEM_INFO_CONFIGS } from '@/components/admin/SystemInfoSection' import { useMiddleware } from './_components/useMiddleware' import { TABS } from './_components/types' import type { TabType } from './_components/types' import OverviewTab from './_components/OverviewTab' import RateLimitingTab from './_components/RateLimitingTab' import SecurityTab from './_components/SecurityTab' import LoggingTab from './_components/LoggingTab' import EventsTab from './_components/EventsTab' export default function MiddlewarePage() { const hook = useMiddleware() return ( {/* Tab Navigation */}
{/* Test Wizard Link */}
🧪

UI Test Wizard

Interaktives Testing mit Lernmaterial - Testen Sie alle Middleware-Komponenten Schritt fuer Schritt

Wizard starten →
{hook.loading ? (

Loading middleware configuration...

) : ( <> {hook.activeTab === 'overview' && } {hook.activeTab === 'rate-limiting' && } {hook.activeTab === 'security' && } {hook.activeTab === 'logging' && } {hook.activeTab === 'events' && } )} {/* System Info Section - For Internal/External Audits */}
) }