import React from 'react';
import { DailyVideo } from '@daily-co/daily-react';
import { useParticipants } from './useParticipants';
import { useViewMode } from './useViewMode';
import styles from './MainVideo.module.css';
/**
* MainVideo component displays the primary participant in the demo experience.
*
* Dynamically switches between:
* - **Discovery Mode**: Tavus AI avatar (camera video)
* - **Presentation Mode**: Slidev screenshare (screen video)
*
* Uses the useViewMode hook to determine which participant to display,
* and Daily's DailyVideo component for video rendering.
*
* @example
* ```tsx
*
Waiting for {viewMode === 'presentation' ? 'presentation' : 'presenter'}...