first commit
This commit is contained in:
13
dashboard/hooks/use-auth.ts
Normal file
13
dashboard/hooks/use-auth.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useState, useEffect } from "react";
|
||||
|
||||
export function useAuth() {
|
||||
const [user, setUser] = useState<any>(null);
|
||||
const [loading, setLoading] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
// Basic auth check logic will go here
|
||||
setLoading(false);
|
||||
}, []);
|
||||
|
||||
return { user, loading };
|
||||
}
|
||||
Reference in New Issue
Block a user