import { useLocation, Outlet, Navigate } from "react-router-dom";
import useAuth from "./hooks/useAuth";
import Navbar from "./components/navbar/Navbar";
import Sidebar from "./components/sidebar/Sidebar";
import { Box } from "@mui/material";
const ProtectedRoute = () => {
const auth = useAuth();
const location = useLocation();
/* Temporary data */
// if (auth?.isLoggedIn != undefined && auth?.isLoggedIn == true) {
// store.dispatch(fetchMeetings(auth?.uuid));
// store.dispatch(fetchUsers(auth?.uuid));
// store.dispatch(fetchFavorites(auth?.uuid));
// store.dispatch(socketActions.startConnecting());
// }
return auth?.isLoggedIn ? (
<>
>
) : (
);
};
export default ProtectedRoute;