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.
Mobile/store/workoutStore.tsx

12 lines
341 B

import {Workout} from "@/model/Workout";
import {create} from "zustand/react";
type State = {
selectedWorkout: Workout | null;
setWorkout: (workout: Workout) => void;
};
export const useWorkoutStore = create<State>((set) => ({
selectedWorkout: null,
setWorkout: (workout: Workout) => set({ selectedWorkout: workout }),
}));