import { withAuthenticationRequired } from "@auth0/auth0-react"; import React from "react"; import { SplashScreen } from "./shared/splashScreen"; export const ProtectedRoute = ({ layout, header, footer, view, viewProps }) => { const ProtectedView = withAuthenticationRequired(layout, { // onRedirecting: () => ( //
// //
// ), }); const Header = () => React.createElement(header); const Footer = () => React.createElement(footer); const View = () => React.createElement(view, viewProps); return } footer={