import { create } from "zustand";
import type { IMinigame } from "@/game-engien";

type GameStore = {
  selectedGame?: IMinigame;
  setSelectedGame: (game?: IMinigame) => void;
};

export const useGameStore = create<GameStore>((set) => ({
  selectedGame: undefined,
  setSelectedGame: (game) => set({ selectedGame: game }),
}));
