-
Notifications
You must be signed in to change notification settings - Fork 349
/
Copy pathtypes.ts
58 lines (49 loc) · 1.25 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { Message, Participant } from "@twilio/conversations";
export type AddMessagesType = (channelSid: string, messages: Message[]) => void;
export type SetSidType = (sid: string) => void;
export type SetParticipantsType = (
participants: Participant[],
sid: string
) => void;
export type SetUnreadMessagesType = (
channelSid: string,
unreadCount: number
) => void;
export enum ActionName {
Save = "save",
Create = "create",
Manage = "manage",
}
export enum InputType {
Text = "text",
Password = "password",
}
export enum Content {
AddChat = "Add chat participant",
AddSMS = "Add SMS participant",
AddWhatsApp = "Add WhatsApp participant",
}
export type MenuElement = {
id: string;
label: string;
onClick?: () => void;
customComponent?: React.ReactNode | ((props: unknown) => React.ReactNode);
enabled?: boolean;
hideOnClick?: boolean;
};
export enum Reactions {
HEART = "heart",
THUMBS_UP = "thumbs_up",
LAUGH = "laugh",
SAD = "sad",
POUTING = "pouting",
THUMBS_DOWN = "thumbs_down",
}
export type ReactionsType = {
[Reactions.HEART]?: string[];
[Reactions.THUMBS_DOWN]?: string[];
[Reactions.THUMBS_UP]?: string[];
[Reactions.SAD]?: string[];
[Reactions.POUTING]?: string[];
[Reactions.LAUGH]?: string[];
};