UNPKG

@lens-protocol/react

Version:

Interacting with the Lens Protocol API using React.

21 lines (20 loc) 753 B
import { ProfileActionHistory, ProfileActionHistoryRequest } from '@lens-protocol/api-bindings'; import { PaginatedArgs, PaginatedReadResult } from "../helpers/reads.js"; /** * {@link useProfileActionHistory} hook arguments */ export type UseProfileActionHistoryArgs = PaginatedArgs<ProfileActionHistoryRequest>; /** * `useProfileActionHistory` is a paginated hook that lets you fetch profile action history. * * You MUST be authenticated via {@link useLogin} to use this hook. * * @category Profiles * @group Hooks * * @example * ```tsx * const { data, loading, error } = useProfileActionHistory(); * ``` */ export declare function useProfileActionHistory(args?: UseProfileActionHistoryArgs): PaginatedReadResult<ProfileActionHistory[]>;