File size: 534 Bytes
f56a29b | 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 | export const USER_AVATAR = '/avatars/user.png';
export type ParticipantRole = 'teacher' | 'student' | 'user';
export interface Participant {
id: string;
name: string;
role: ParticipantRole;
avatar: string;
isOnline: boolean;
isSpeaking?: boolean;
}
export interface MessageAction {
id: string;
label: string;
icon?: string;
onClick: () => void;
}
export interface Message {
id: string;
senderId: string;
senderRole: ParticipantRole;
content: string;
timestamp: number;
actions?: MessageAction[];
}
|