2022-01-17 21:48:56 +00:00
|
|
|
import { Action } from 'redux';
|
|
|
|
|
|
|
|
import { MESSAGES } from './actionsTypes';
|
2022-04-01 21:52:38 +00:00
|
|
|
import { IMessage } from '../definitions';
|
2022-01-17 21:48:56 +00:00
|
|
|
|
|
|
|
interface IReplyBroadcast extends Action {
|
|
|
|
message: IMessage;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function replyBroadcast(message: IMessage): IReplyBroadcast {
|
|
|
|
return {
|
|
|
|
type: MESSAGES.REPLY_BROADCAST,
|
|
|
|
message
|
|
|
|
};
|
|
|
|
}
|