"use client" import { useAuth } from "@/lib/auth-context" import { TicketTable } from "@/components/tickets/ticket-table" import { RoomManagement } from "@/components/dashboard/room-management" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { ShieldAlert, Users } from "lucide-react" export function AdminDashboard() { const { tickets, updateTicketStatus, deleteTicket, authHeader } = useAuth() const API_URL = process.env.NEXT_PUBLIC_API_URL + "/api" // Admin sees all tickets (logic handled in Backend/TicketService) // We need to implement Ticket Delete logic passed to TicketTable or handle it inside TicketTable? // TicketTable doesn't have Delete button yet. // Actually, requirement says "Kann Tickets löschen". TicketTable needs a delete option or we add it. // Let's add delete to TicketTable? OR just add it to the Detail Dialog? // User asked "user with ID 1 = administrator... screen for creating/deleting/renaming rooms". // For tickets, "Can delete tickets". // I should probably add a Delete button in TicketTable (maybe only visible if onDelete is provided). return (
Systemverwaltung und Ticket-Übersicht
Gesamt im System
Admin Mode