Definitely going to need to work on the types here

This commit is contained in:
2024-10-16 08:02:39 -05:00
parent 701315011b
commit c2858198ca
8 changed files with 538 additions and 0 deletions

View File

@ -123,9 +123,28 @@ export type GCMessage = {
pending?: boolean;
quickReplies?: GCQuickReplies;
};
export type GCState = {
messages: any[];
step: number;
loadEarlier?: boolean;
isLoadingEarlier?: boolean;
isTyping: boolean;
};
export enum ActionKind {
SEND_MESSAGE = 'SEND_MESSAGE',
LOAD_EARLIER_MESSAGES = 'LOAD_EARLIER_MESSAGES',
LOAD_EARLIER_START = 'LOAD_EARLIER_START',
SET_IS_TYPING = 'SET_IS_TYPING',
// LOAD_EARLIER_END = 'LOAD_EARLIER_END',
};
export type GCStateAction = {
type: ActionKind;
payload?: any;
};
export type NotificationMessage = {
sound?: string;
title: string;
body: string;
data?: any;
};