feat: add app shell with sidebar navigation, routing, and placeholder pages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-16 14:41:59 +05:30
parent dc68577477
commit 2984545dde
10 changed files with 260 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
import type { ReactNode } from "react";
import { useLocation } from "react-router";
import { Sidebar } from "./sidebar";
interface AppShellProps {
children: ReactNode;
}
export const AppShell = ({ children }: AppShellProps) => {
const { pathname } = useLocation();
return (
<div className="flex min-h-screen bg-primary">
<Sidebar activeUrl={pathname} />
<main className="flex flex-1 flex-col overflow-auto">{children}</main>
</div>
);
};