mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-04-03 19:23:08 +00:00
ui redesign
This commit is contained in:
23
ui/src/components/views/BrowsersView.tsx
Normal file
23
ui/src/components/views/BrowsersView.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user