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

type State = {
  selectedWorkout: SessionDTO | null;
  setWorkout: (workout: SessionDTO) => void;
};

export const useWorkoutStore = create<State>((set) => ({
  selectedWorkout: null,
  setWorkout: (workout: SessionDTO) => set({ selectedWorkout: workout }),
}));
