2021-07-13 06:50:08 +00:00
|
|
|
import {
|
2021-08-23 09:57:56 +00:00
|
|
|
SHOW_SOUNDS_NOTIFICATION,
|
2021-07-13 06:50:08 +00:00
|
|
|
TOGGLE_REACTIONS_VISIBLE
|
|
|
|
} from './actionTypes';
|
2022-06-08 07:44:47 +00:00
|
|
|
import { ReactionsAction } from './reducer';
|
2021-07-13 06:50:08 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Toggles the visibility of the reactions menu.
|
2022-07-11 12:30:37 +00:00
|
|
|
*
|
|
|
|
* @returns {void}
|
2021-07-13 06:50:08 +00:00
|
|
|
*/
|
2022-06-08 07:44:47 +00:00
|
|
|
export function toggleReactionsMenuVisibility(): ReactionsAction {
|
2021-07-13 06:50:08 +00:00
|
|
|
return {
|
|
|
|
type: TOGGLE_REACTIONS_VISIBLE
|
|
|
|
};
|
|
|
|
}
|
2021-08-23 09:57:56 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Displays the disable sounds notification.
|
2022-07-11 12:30:37 +00:00
|
|
|
*
|
|
|
|
* @returns {void}
|
2021-08-23 09:57:56 +00:00
|
|
|
*/
|
2022-06-08 07:44:47 +00:00
|
|
|
export function displayReactionSoundsNotification(): ReactionsAction {
|
2021-08-23 09:57:56 +00:00
|
|
|
return {
|
|
|
|
type: SHOW_SOUNDS_NOTIFICATION
|
|
|
|
};
|
|
|
|
}
|