10 lines
226 B
TypeScript
10 lines
226 B
TypeScript
import { redirectIfNotLoggedIn } from '../hooks/AuthenticationHooks';
|
|
|
|
function RequireAuth({ children }: { children: JSX.Element }): JSX.Element {
|
|
redirectIfNotLoggedIn();
|
|
|
|
return children;
|
|
}
|
|
|
|
export default RequireAuth;
|