"use client"; import { useState } from "react"; import { SectionHeading } from "@/components/ui/SectionHeading"; import { Reveal } from "@/components/ui/Reveal"; import { TeamCarousel } from "@/components/sections/team/TeamCarousel"; import { TeamMemberInfo } from "@/components/sections/team/TeamMemberInfo"; import { TeamProfile } from "@/components/sections/team/TeamProfile"; import type { SiteContent, ScheduleLocation } from "@/types/content"; interface TeamProps { data: SiteContent["team"]; schedule?: ScheduleLocation[]; } export function Team({ data: team, schedule }: TeamProps) { const [activeIndex, setActiveIndex] = useState(0); const [showProfile, setShowProfile] = useState(false); return (
{/* Stage spotlight glow */}
{team.title}
{!showProfile ? ( <>
setShowProfile(true)} />
) : ( setShowProfile(false)} schedule={schedule} /> )}
); }