diff --git a/Frontend/src/components/EvolutionTree.tsx b/Frontend/src/components/EvolutionTree.tsx index 224f045..1630d47 100644 --- a/Frontend/src/components/EvolutionTree.tsx +++ b/Frontend/src/components/EvolutionTree.tsx @@ -1,6 +1,7 @@ // EvolutionTree.tsx — Arbre d'Évolution V2 (Sprint 3) // 3 branches + capstones + post-capstone repeatables + Convergence évolutif +import { useState } from "react"; import { useGameStore } from "../store/useGameStore"; import { canBuyEvolutionNode, @@ -208,10 +209,13 @@ function ConvergenceSection() { ); } +const BRANCHES: Branch[] = ["ponte", "marais", "adaptation"]; + export function EvolutionTree() { const state = useGameStore((s) => s.state); const resetTree = useGameStore((s) => s.resetTree); const { prestigeCount, ancestralDna, evolutionTree } = state; + const [activeBranch, setActiveBranch] = useState("ponte"); if (prestigeCount < 1) return null; @@ -254,11 +258,31 @@ export function EvolutionTree() { )} -
- - - + + {/* Branch tabs */} +
+ {BRANCHES.map((branch) => { + const config = BRANCH_CONFIG[branch]; + const isActive = activeBranch === branch; + return ( + + ); + })}
+ + {/* Active branch content */} + +
);