[MM-42565] Toast - Follow/Unfollow thread with undo functionality (#7267)

This commit is contained in:
Tanmay Vardhaman Thole
2023-04-14 21:58:03 +05:30
committed by GitHub
parent 2658d62c9c
commit 265c4fe8a6
7 changed files with 32 additions and 6 deletions

View File

@@ -47,3 +47,10 @@ export const showRemoveChannelUserSnackbar = () => {
sourceScreen: Screens.MANAGE_CHANNEL_MEMBERS,
});
};
export const showThreadFollowingSnackbar = (following: boolean, onAction: () => void) => {
return showSnackBar({
onAction,
barType: following ? SNACK_BAR_TYPE.FOLLOW_THREAD : SNACK_BAR_TYPE.UNFOLLOW_THREAD,
});
};