import { useGameStore } from "../store/useGameStore"; import { ACHIEVEMENTS } from "../data/achievements"; function Achievements() { const state = useGameStore((s) => s.state); const unlocked = ACHIEVEMENTS.filter((a) => a.check(state)); const locked = ACHIEVEMENTS.filter((a) => !a.check(state)); return (

Succès

{unlocked.length} / {ACHIEVEMENTS.length}

{unlocked.map((a) => (
{a.icon}

{a.name}

{a.description}

))} {locked.map((a) => (
🔒

{a.name}

???

))}
); } export default Achievements;