import { Outlet } from "react-router-dom";
import { Sidebar } from "./Sidebar";
import { Topbar } from "./Topbar";
import { WorkspaceProvider } from "../../context/WorkspaceContext";
import "./AppLayout.css";

export function AppLayout() {
    return (
        <WorkspaceProvider>
            <div className="dw-app-layout">
                <Sidebar />
                <div className="dw-app-layout__main">
                    <Topbar />
                    <main className="dw-app-layout__content">
                        <Outlet />
                    </main>
                </div>
            </div>
        </WorkspaceProvider>
    );
}