File size: 291 Bytes
246d201
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import ActionType from "#/types/action-type";

export function createChatMessage(

  message: string,

  image_urls: string[],

  timestamp: string,

) {
  const event = {
    action: ActionType.MESSAGE,
    args: { content: message, image_urls, timestamp },
  };
  return event;
}