progress in auth and other contexts
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
import useAuth from '../../providers/AuthProvider';
|
||||
|
||||
export default function ProtectedRoute({ children }: { children: React.ReactNode }) {
|
||||
const { user } = useAuth();
|
||||
|
||||
if (user) return;
|
||||
return <>hey</>;
|
||||
}
|
||||
Reference in New Issue
Block a user