"use client"; import { useState } from "react"; import Link from "next/link"; import UserManagement from "@/components/UserManagement"; import EventManagement from "@/components/EventManagement"; import FeedbackManagement from "@/components/FeedbackManagement"; import BackgroundPreferences from "@/components/BackgroundPreferences"; import { Button, Card, SectionTitle } from "@/components/ui"; interface SitePreferences { id: string; homeBackground: string | null; eventsBackground: string | null; leaderboardBackground: string | null; } interface AdminPanelProps { initialPreferences: SitePreferences; } type AdminSection = "preferences" | "users" | "events" | "feedbacks"; export default function AdminPanel({ initialPreferences }: AdminPanelProps) { const [activeSection, setActiveSection] = useState("preferences"); return (
ADMIN {/* Navigation Tabs */}
{activeSection === "preferences" && (

Préférences UI Globales

)} {activeSection === "users" && (

Gestion des Utilisateurs

)} {activeSection === "events" && (

Gestion des Événements

)} {activeSection === "feedbacks" && (

Gestion des Feedbacks

)}
); }