- Deleted Broadcast, AudioConference, Chat, ControlBar, PreJoin, VideoConference components. - Removed demo configuration file and related context. - Cleaned up index files and hooks related to destinations and scenes. - Introduced new Header and DestinationModal components for better UI management. - Updated global styles and layout structure for improved responsiveness.
25 lines
692 B
TypeScript
25 lines
692 B
TypeScript
// Hook minimal de ejemplo para exponer la escena (interface ligera)
|
|
import { useState } from 'react'
|
|
import type { SceneConfig } from '../types'
|
|
|
|
export function useScene() {
|
|
const [sceneConfig, setSceneConfig] = useState<SceneConfig>({
|
|
participantLayout: 'single_speaker',
|
|
mediaSource: null,
|
|
overlays: {
|
|
showLogo: true,
|
|
showLowerThird: false,
|
|
lowerThirdText: ''
|
|
}
|
|
})
|
|
|
|
const applyPreset = (preset: any) => {
|
|
if (!preset) return
|
|
setSceneConfig((s) => ({ ...s, ...preset }))
|
|
}
|
|
|
|
const updateOverlays = (overlays: SceneConfig['overlays']) => setSceneConfig((s) => ({ ...s, overlays }))
|
|
|
|
return { sceneConfig, applyPreset, updateOverlays }
|
|
}
|