UNPKG

@100mslive/roomkit-react

Version:

![Banner](https://github.com/100mslive/web-sdks/blob/06c65259912db6ccd8617f2ecb6fef51429251ec/prebuilt-banner.png)

28 lines (25 loc) 761 B
import { HMSPeerType, HMSPeerWithMuteStatus } from '@100mslive/react-sdk'; let counter = 1; export const makeFakeParticipant = (name: string, role = 'Student'): HMSPeerWithMuteStatus => { return { peer: { id: String(counter++), name, roleName: role, auxiliaryTracks: [], isLocal: counter === 1, groups: [], isHandRaised: false, type: HMSPeerType.REGULAR, }, isAudioEnabled: false, }; }; export const fakeParticipants = [ makeFakeParticipant('Alex Tinmayson', 'Teacher'), makeFakeParticipant('Ankita Bhattacharya'), makeFakeParticipant('Anshul Kumar'), makeFakeParticipant('Ishaan Awasthi'), makeFakeParticipant('Ivy Loppinbug', 'Teacher'), makeFakeParticipant('Sudhanshu Kumar'), ];