Initial project structure cleanup
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import type { PropsWithChildren } from 'react';
|
||||
|
||||
import { Sidebar } from './Sidebar';
|
||||
|
||||
type AppShellProps = PropsWithChildren<{
|
||||
active: string;
|
||||
onSelect: (value: string) => void;
|
||||
}>;
|
||||
|
||||
export function AppShell({
|
||||
active,
|
||||
onSelect,
|
||||
children,
|
||||
}: AppShellProps) {
|
||||
return (
|
||||
<div className="flex h-screen overflow-hidden bg-ink-950 text-white">
|
||||
<Sidebar active={active} onSelect={onSelect} />
|
||||
|
||||
<main className="flex-1 overflow-hidden p-4">
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user