CLOVER Website - v0.3.1
    Preparing search index...

    Function useUserActivity

    • Custom hook to fetch user activity logs and calculate progress data.

      Parameters

      • OptionaluserId: null | string

        The ID of the user whose activity is to be fetched.

      • selectedClassId: null | string = null

        The ID of the selected class (optional).

      • selectedClassType: null | "all" | "class" | "non-class" = "all"

        The type of class filter (optional).

      Returns {
          error: null | string;
          isEmpty: boolean;
          loading: boolean;
          progressData: ProgressData;
          userActivity: UserActivityLogItem[];
      }

      • An object containing user activity logs, progress data, loading state, error message, and empty state.