progress in auth and other contexts

This commit is contained in:
talksik
2022-05-13 05:40:07 -05:00
parent 018575ee13
commit 5eb57726ab
8 changed files with 187 additions and 7 deletions
@@ -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</>;
}