import { useEffect } from "react";
import { useAppDispatch } from "../../data/react.js";
import { waitMessage } from "../../data/wait-message/actions.js";
const WaitMessageLauncher = () => {
  const dispatch = useAppDispatch();
  useEffect(() => {
    dispatch(waitMessage.open());
    return () => {
      dispatch(waitMessage.close());
    };
  }, [dispatch]);
  return null;
};
export {
  WaitMessageLauncher
};
