// ANCHOR React DND import { DragObjectWithType } from 'react-dnd'; // ANCHOR Results import { IFetchEventParticipantsResult } from '../user/result'; import { IFetchStreamResult } from '../stream/result'; /** * Used as base type for breakout groups */ export interface IBreakoutGroupBase { name: string; } /** * Used as base type for breakout */ export interface IBreakoutBase { id: string; startedAt: Date; stopedAt?: Date; timeLimit: number; isActive: boolean; stream: IFetchStreamResult; } /** * Used for fetched event participants for breakout */ export interface IParticipant { user: IFetchEventParticipantsResult; } /** * Used in breakout participant drag and drop methods */ export interface DragParticipantObject extends DragObjectWithType { participant: IFetchEventParticipantsResult; group: string; } /** * Used in mutable group map (pre-parsed payload) */ export interface IBreakoutGroupMap extends IBreakoutGroupBase { id: string; participants: IFetchEventParticipantsResult[]; }