import { create } from "zustand";
import { FullScreenHandle } from "react-full-screen";

interface ModalStore {
  onFullscreen: FullScreenHandle | null;
  setOnFullscreen: (onFullscreen: FullScreenHandle) => void;
}

const useFullScreen = create<ModalStore>((set) => ({
  onFullscreen: null,
  setOnFullscreen: (onFullscreen) =>
    set(() => ({ onFullscreen: onFullscreen })),
}));

export default useFullScreen;
