Hiyve Components - v1.0.0
    Preparing search index...

    Interface UseActivityTrackerResult

    Return type for the useActivityTracker hook.

    Provides controls for starting and stopping work sessions, tracking elapsed time, and recording session notes.

    interface UseActivityTrackerResult {
        currentSession: ActivitySession | null;
        endSession: () => void;
        isActive: boolean;
        sessionDuration: number;
        startSession: () => void;
        updateSessionNotes: (notes: string) => void;
    }
    Index

    Properties

    currentSession: ActivitySession | null

    The current active session (null if no session is active)

    endSession: () => void

    End the current work session

    isActive: boolean

    Whether a session is currently active

    sessionDuration: number

    Duration of the current session in minutes

    startSession: () => void

    Start a new work session

    updateSessionNotes: (notes: string) => void

    Update notes for the current session