import React from 'react'; import { AppShell, Container, Loader, Center } from '@mantine/core'; import Header from './Header'; import Sidebar from './Sidebar'; import MainContent from './MainContent'; import { useFileNavigation } from '../../hooks/useFileNavigation'; import { useFileList } from '../../hooks/useFileList'; import { useWorkspace } from '../../hooks/useWorkspace'; const Layout: React.FC = () => { const { currentWorkspace, loading: workspaceLoading } = useWorkspace(); const { selectedFile, handleFileSelect } = useFileNavigation(); const { files, loadFileList } = useFileList(); if (workspaceLoading) { return (
); } if (!currentWorkspace) { return
No workspace found. Please create a workspace.
; } return (
); }; export default Layout;