import { create } from "zustand";
import type { ReactNode } from "react";

interface PopupState {
  popup: ReactNode | null;
  setPopup: (popup: ReactNode | null) => void;
}

const usePopupStore = create<PopupState>()((set) => ({
  popup: null,
  setPopup: (popup) => set({ popup }),
}));

export default usePopupStore;
