mirror of
https://github.com/yusufipk/YTChatHub.git
synced 2026-09-11 19:06:14 +00:00
feat: enhance chat UI with badges, superchat and membership display
This commit is contained in:
@@ -1,6 +1,25 @@
|
||||
export type Badge = {
|
||||
type: 'moderator' | 'member' | 'verified' | 'custom';
|
||||
label?: string;
|
||||
icon?: string;
|
||||
};
|
||||
|
||||
export type SuperChatInfo = {
|
||||
amount: string;
|
||||
currency: string;
|
||||
color: string;
|
||||
};
|
||||
|
||||
export type ChatMessage = {
|
||||
id: string;
|
||||
author: string;
|
||||
authorPhoto?: string;
|
||||
text: string;
|
||||
publishedAt: string;
|
||||
badges?: Badge[];
|
||||
isModerator?: boolean;
|
||||
isMember?: boolean;
|
||||
isVerified?: boolean;
|
||||
superChat?: SuperChatInfo;
|
||||
membershipGift?: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user