import React, { useState } from "react"; import { motion } from "framer-motion"; import { Swiper, SwiperSlide } from "swiper/react"; import "swiper/css"; import "swiper/css/navigation"; import { Navigation } from "swiper/modules"; const AdminDashboard = () => { const [activeTab, setActiveTab] = useState("hero"); const [images, setImages] = useState([ "https://vibra.qodeinteractive.com/wp-content/uploads/2019/02/h1-slider-3-background.jpg", "https://vibra.qodeinteractive.com/wp-content/uploads/2019/02/h1-slider-2-background.jpg", "https://vibra.qodeinteractive.com/wp-content/uploads/2019/02/h1-slider-1-background.jpg", ]); const [coaches, setCoaches] = useState([ { name: "John Doe", title: "Head Coach" }, { name: "Jane Smith", title: "Assistant Coach" }, ]); const [newCoach, setNewCoach] = useState({ name: "", title: "" }); const addCoach = () => { if (newCoach.name && newCoach.title) { setCoaches([...coaches, newCoach]); setNewCoach({ name: "", title: "" }); } }; const removeCoach = (index) => { setCoaches(coaches.filter((_, i) => i !== index)); }; return (
Manage hero section images.
{coach.title}
Manage the coaching team.
Schedule, edit, or remove events from the calendar.