training.tsx still a bit messy, all that is left is to retrieve data from firestore /training and /walkthrough and render it

This commit is contained in:
Carlos Mesquita
2024-07-31 20:44:46 +01:00
parent 02320b9484
commit a534126c61
16 changed files with 1600 additions and 285 deletions

View File

@@ -0,0 +1,18 @@
import { Stat } from "@/interfaces/user";
import {create} from "zustand";
export interface TrainingContentState {
stats: Stat[];
setStats: (stats: Stat[]) => void;
}
export const initialState = {
stats: [],
};
const trainingContentStore = create<TrainingContentState>((set) => ({
...initialState,
setStats: (stats: Stat[]) => set(() => ({stats})),
}));
export default trainingContentStore;