import React from "react"; import TopNav from "@/components/app-shell/TopNav"; import SidebarPlaceholder from "@/components/app-shell/SidebarPlaceholder"; /** * AppShell * * Purpose: * - Provide a stable frame for all protected pages: * - Top navigation (always visible) * - Optional sidebar area (desktop) * - Main content area (route pages render here) * * Layout notes: * - The outer wrapper must be `flex flex-col` so the content region can use `flex-1` * and fill the remaining viewport height below the TopNav. * * Test/runtime note: * - Our Vitest/Vite setup currently uses the "classic" JSX runtime in unit tests, * which requires React to be in scope. Importing React here ensures tests work * without introducing additional build tooling configuration. */ export default function AppShell({ children }) { return (