import { useEffect } from "react"; import { useParams } from "react-router-dom"; import { NavLink } from "react-router-dom"; import { useDispatch } from "react-redux"; import { verifyEmail } from "../redux/features/userSlice"; import Navbar from "./Navbar"; import Footer from "./Footer"; const VerifyUser = () => { const dispatch = useDispatch(); // const user = useSelector((state) => state.auth.user); const { id, token } = useParams(); useEffect(() => { dispatch(verifyEmail({ id, token })); }, [dispatch, id, token]); return (



{" "} Email verified successfully !!!


Please login {" "} to access and start publishing your articles ...

); }; export default VerifyUser;