import { useEffect } from "react"; import Footer from "./Footer"; import Navbar from "./Navbar"; import { useDispatch, useSelector } from "react-redux"; import { showUser } from "../redux/features/userSlice"; const Dashboard = () => { const { user } = useSelector((state) => ({ ...state.auth })); const dispatch = useDispatch(); const userId = user?.result?._id; useEffect(() => { if (userId) { dispatch(showUser(userId)); } }, [userId, dispatch]); return (





A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need

{user?.result?._id && (
)}
); }; export default Dashboard;