Files
Mace-AIO-Discord-Bot---With…/dashboard/hooks/use-auth.ts
2026-07-12 15:16:07 +05:30

14 lines
297 B
TypeScript

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 };
}