18 lines
417 B
TypeScript
18 lines
417 B
TypeScript
import { Outlet } from "react-router-dom";
|
|
import { Sidebar } from "./Sidebar";
|
|
import { TopBar } from "./TopBar";
|
|
|
|
export function AppShell() {
|
|
return (
|
|
<div className="flex min-h-screen bg-gray-50">
|
|
<Sidebar />
|
|
<div className="flex-1 flex flex-col min-w-0">
|
|
<TopBar />
|
|
<main className="flex-1 p-6 overflow-auto">
|
|
<Outlet />
|
|
</main>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|