"use client"; import { useState, useTransition } from "react"; import { findIdeasNow } from "@/app/actions"; import { secondaryBtn } from "./ui"; /** Lance l'analyse du soir tout de suite, sans attendre le rendez-vous. */ export function FindIdeas({ label = "🔎 Chercher des idées maintenant" }: { label?: string }) { const [pending, start] = useTransition(); const [log, setLog] = useState(null); return (
{log && log.length > 0 &&

{log.at(-1)}

}
); }