import debug from "debug" ; import RootStore from "../stores" ; const log = debug ( "effect:reaction" ) ; export const toggleReaction = ( { ui } ) => ( ) => { log ( `toggleReaction() -> ${ ! ui . isReactionOpen }` ) ; ui . isReactionOpen = ! ui . isReactionOpen ; } ; export const sendReaction = ( { room , client } ) => ( reaction ) => { log ( "sendReaction()" , reaction ) ; room . addReaction ( client . displayName , reaction ) ; } ;