You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
395 B
14 lines
395 B
import {Workout} from "@/model/Workout";
|
|
import {create} from "zustand/react";
|
|
import {Exercice} from "@/model/Exercice";
|
|
|
|
|
|
type State = {
|
|
selectedExercice: Exercice | null;
|
|
setExercice: (exercice: Exercice) => void;
|
|
}
|
|
|
|
export const useExerciceStore = create<State>((set) => ({
|
|
selectedExercice: null,
|
|
setExercice: (exercice: Exercice) => set({ selectedExercice: exercice })
|
|
})); |