2022-02-28 18:00:47 +00:00
|
|
|
import { Action } from 'redux';
|
|
|
|
|
|
|
|
import { MESSAGES } from './actionsTypes';
|
2022-04-28 18:45:00 +00:00
|
|
|
import { IMessage } from '../definitions';
|
2022-02-28 18:00:47 +00:00
|
|
|
|
|
|
|
interface IReplyBroadcast extends Action {
|
|
|
|
message: IMessage;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function replyBroadcast(message: IMessage): IReplyBroadcast {
|
|
|
|
return {
|
|
|
|
type: MESSAGES.REPLY_BROADCAST,
|
|
|
|
message
|
|
|
|
};
|
|
|
|
}
|