import { useGameStore } from "../store/useGameStore"; import { ACHIEVEMENTS } from "../data/achievements"; import "../scss/achievements.scss"; 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 (
{unlocked.length} / {ACHIEVEMENTS.length}
{a.name}
{a.description}
{a.name}
???