mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-04-03 03:03:10 +00:00
24 lines
621 B
TypeScript
24 lines
621 B
TypeScript
/**
|
|
* Browsers View
|
|
*
|
|
* Full-page live browser screenshots from each agent's browser session.
|
|
* BrowserViewPanel handles subscribe/unsubscribe internally via useEffect.
|
|
*/
|
|
|
|
import { useAppContext } from '@/contexts/AppContext'
|
|
import { BrowserViewPanel } from '../BrowserViewPanel'
|
|
|
|
export function BrowsersView() {
|
|
const { wsState } = useAppContext()
|
|
|
|
return (
|
|
<div className="flex-1 overflow-hidden">
|
|
<BrowserViewPanel
|
|
screenshots={wsState.browserScreenshots}
|
|
onSubscribe={wsState.subscribeBrowserView}
|
|
onUnsubscribe={wsState.unsubscribeBrowserView}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|