Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
20 lines
438 B
TypeScript
20 lines
438 B
TypeScript
import type { ReactNode } from 'react';
|
|
import { Sidebar } from './sidebar';
|
|
import { Topbar } from './topbar';
|
|
|
|
interface AppShellProps {
|
|
children: ReactNode;
|
|
}
|
|
|
|
export function AppShell({ children }: AppShellProps): React.ReactElement {
|
|
return (
|
|
<div className="min-h-screen">
|
|
<Sidebar />
|
|
<div className="pl-sidebar">
|
|
<Topbar />
|
|
<main className="p-6">{children}</main>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|