message: fix: toggleOnClose is not a function error
diff: @@ -92,7 +92,7 @@ const Modal = (
  const value: any = {
  visible: isVisible,
  toggleVisible: setIsVisible,
  - toggleOnClose: onClose,
  + toggleOnClose: onClose ? onClose : () => {},
  newProps: newProps,
  };
  const modalChildren = (
  