import { ExerciceDTO } from "@/api/service/dto/dto.training";
import { create } from "zustand/react";

type State = {
  selectedExercice: ExerciceDTO | null;
  setExercice: (exercice: ExerciceDTO) => void;
};

export const useExerciceStore = create<State>((set) => ({
  selectedExercice: null,
  setExercice: (exercice: ExerciceDTO) => set({ selectedExercice: exercice }),
}));
