import { useSendReaction } from '@towns-protocol/react-sdk'
import { useSendReaction } from '@towns-protocol/react-sdk' const { sendReaction } = useSendReaction('stream-id') sendReaction(messageEventId, '🔥')
function useSendReaction( streamId: string, config?: ActionConfig<Channel["sendReaction"]>, ): { data: { eventId: string; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; sendReaction: (refEventId: string, reaction: string) => Promise<{ eventId: string; }>; }
string
ActionConfig<Channel["sendReaction"]>
sendReaction
{ data: { eventId: string; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; sendReaction: (refEventId: string, reaction: string) => Promise<{ eventId: string; }>; }
Was this page helpful?