Files
wehub-resource-sync c48612c494
CI / E2E Tests (push) Has been cancelled
CI / Lint, Typecheck & Unit Tests (push) Has been cancelled
Docs Build / Build docs site (push) Has been cancelled
Publish @openmaic packages / Build, validate & publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:23 +08:00

29 lines
534 B
TypeScript

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[];
}