import { useEffect } from "react"; import { useAuth } from "@/_core/hooks/useAuth"; import { Loader2, FileText } from "lucide-react"; import { useLocation } from "wouter"; import { Button } from "@/components/ui/button"; export default function Home() { const [, setLocation] = useLocation(); const { user, loading } = useAuth(); useEffect(() => { if (!loading) { if (user) { setLocation("/dashboard"); } else { setLocation("/login"); } } }, [user, loading, setLocation]); return (

Invoice Analyzer

Dématérialisation de la facturation

); }