import { create } from "zustand";
import type { Player } from "@/server/db/schema";

type SessionPlayerStore = {
  sessionPlayer?: Player | null;
  setSessionPlayer: (player?: Player | null) => void;
};

export const useSessionPlayerStore = create<SessionPlayerStore>((set) => ({
  sessionPlayer: undefined,
  setSessionPlayer: (player) => set({ sessionPlayer: player }),
}));
