@towns-protocol/react-sdk
Version:
React Hooks for Towns Protocol SDK
10 lines • 637 B
TypeScript
import { MessageReactions } from '@towns-protocol/sdk';
import { type ObservableConfig } from './useObservable';
/**
* Hook to get the reactions of a specific stream.
* @param streamId - The id of the stream to get the reactions of.
* @param config - Configuration options for the observable.
* @returns The reactions of the stream as a map from the message eventId to the reaction.
*/
export declare const useReactions: (streamId: string, config?: ObservableConfig.FromData<Record<string, MessageReactions>>) => import("./useObservable").ObservableValue<Record<string, MessageReactions>>;
//# sourceMappingURL=useReactions.d.ts.map