Hook to check if mood analysis is ready.
Object with enabled, ready, loading, and error states
Convenience hook that returns loading/ready/error status. Useful for showing loading states or error messages.
function MoodIndicator() { const { ready, loading, error } = useMoodAnalysisStatus(); if (loading) return <Spinner />; if (error) return <ErrorMessage error={error} />; if (!ready) return null; return <MoodDisplay />;} Copy
function MoodIndicator() { const { ready, loading, error } = useMoodAnalysisStatus(); if (loading) return <Spinner />; if (error) return <ErrorMessage error={error} />; if (!ready) return null; return <MoodDisplay />;}
Hook to check if mood analysis is ready.