Hiyve Components - v1.0.0
    Preparing search index...
    • Hook to get mood state for a specific user.

      Parameters

      • userId: string

        The user ID to get mood state for

      Returns MoodAnalysisMoodState | undefined

      The mood state or undefined if not available

      Convenience hook that returns just the mood state for a single user. Useful when you only need one participant's mood data.

      function ParticipantTile({ userId }: { userId: string }) {
      const moodState = useMoodState(userId);

      return (
      <div>
      {moodState && (
      <span>Mood: {moodState.emotion}</span>
      )}
      </div>
      );
      }