Files
openchamber/packages/vscode/webview/components/VSCodeLayout.tsx
T

15 lines
426 B
TypeScript
Raw Normal View History

2025-12-13 16:34:17 +02:00
import React from 'react';
import { useNavigation } from '../hooks/useNavigation';
import { SessionsListView } from './SessionsListView';
import { ChatPanel } from './ChatPanel';
export function VSCodeLayout() {
const { currentView } = useNavigation();
return (
<div className="h-full w-full bg-background text-foreground">
{currentView === 'sessions' ? <SessionsListView /> : <ChatPanel />}
</div>
);
}