zzz / frontend /src /services /chat-service.ts
ar08's picture
Upload 1040 files
246d201 verified
raw
history blame contribute delete
291 Bytes
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;
}