'use client'; import { useState } from 'react'; import { Card, CardContent } from '@/components/ui/card'; import { AlertTriangle, ChevronDown, ChevronRight } from 'lucide-react'; import { DebugName } from '@/components/game/debug/debug-context'; import { GameStateDebugSection } from './DebugTab/GameStateDebugSection'; import { DisciplineDebugSection } from './DebugTab/DisciplineDebugSection'; import { AttunementDebugSection } from './DebugTab/AttunementDebugSection'; import { ElementDebugSection } from './DebugTab/ElementDebugSection'; import { GolemDebugSection } from './DebugTab/GolemDebugSection'; import { PactDebugSection } from './DebugTab/PactDebugSection'; import { SpireDebugSection } from './DebugTab/SpireDebugSection'; import { AchievementDebugSection } from './DebugTab/AchievementDebugSection'; interface DebugSectionProps { title: string; color: string; children: React.ReactNode; defaultOpen?: boolean; } function DebugSection({ title, color, children, defaultOpen = false }: DebugSectionProps) { const [isOpen, setIsOpen] = useState(defaultOpen); return ( {isOpen && ( {children} )} ); } export function DebugTab() { return (
{/* Warning Banner */}
Debug Mode

These tools are for development and testing. Using them may break game balance or save data.

); } DebugTab.displayName = "DebugTab";