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

interface ModalState {
  modal: ReactNode | null;
  setModal: (modal: ReactNode) => void;
}

const useModalStore = create<ModalState>((set) => ({
  modal: null,
  setModal: (modal) => set({ modal }),
}));

export default useModalStore;
