File size: 611 Bytes
3786a3f
 
678f5a2
3786a3f
 
678f5a2
 
3786a3f
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Sidebar } from './Sidebar';
import { TopBar } from './TopBar';
import { useDocumentPolling } from '@/hooks/useDocumentPolling';

export function DashboardLayout({ children }: { children: React.ReactNode }) {
  useDocumentPolling(); // Poll documents globally to keep Query page select boxes in sync
  
  return (
    <div className="flex h-screen overflow-hidden bg-bg-base">
      <Sidebar />
      <div className="flex min-w-0 flex-1 flex-col">
        <TopBar title="GraphRAG Knowledge AI" />
        <main className="min-h-0 flex-1 overflow-hidden">{children}</main>
      </div>
    </div>
  );
}