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;