@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
21 lines (19 loc) • 638 B
text/typescript
import { createCommentEventSubscriber } from './utils';
/**
* ```js
* import { onCommentUnflagged } from '@amityco/ts-sdk-react-native'
* const dispose = onCommentUnflagged(comment => {
* // ...
* })
* ```
*
* Fired when a flag has been removed from a {@link Amity.InternalComment}
*
* @param callback The function to call when the event was fired
* @returns an {@link Amity.Unsubscriber} function to stop listening
*
* @category Comment Events
*/
export const onCommentUnflagged = (
callback: Amity.Listener<Amity.InternalComment>,
): Amity.Unsubscriber => createCommentEventSubscriber('comment.unflagged', callback);