'use client' import { useState } from 'react' import { MapPin, Palette, Briefcase, Shirt, Zap } from 'lucide-react' import { clsx } from 'clsx' import { motion, AnimatePresence } from 'framer-motion' interface SettingsTabsProps { branding: React.ReactNode teams: React.ReactNode arenas: React.ReactNode sponsors: React.ReactNode voting: React.ReactNode } export function SettingsTabs({ branding, teams, arenas, sponsors, voting }: SettingsTabsProps) { const [activeTab, setActiveTab] = useState<'branding' | 'teams' | 'arenas' | 'sponsors' | 'voting'>('branding') const tabs = [ { id: 'branding', label: 'Identidade Visual', icon: Palette }, { id: 'voting', label: 'Votação & Resenha', icon: Zap }, { id: 'teams', label: 'Times', icon: Shirt }, { id: 'arenas', label: 'Locais & Arenas', icon: MapPin }, { id: 'sponsors', label: 'Patrocínios', icon: Briefcase }, ] as const return (
{tabs.map((tab) => ( ))}
{activeTab === 'branding' && ( {branding} )} {activeTab === 'voting' && ( {voting} )} {activeTab === 'teams' && ( {teams} )} {activeTab === 'arenas' && ( {arenas} )} {activeTab === 'sponsors' && ( {sponsors} )}
) }