---
import Base from "@/layouts/Base.astro";
import Root from "@/components/AppLayout.jsx";

// Auth + role check handled by middleware
// Middleware redirects to /login if not authenticated or lacks 'lighting' role
const user = Astro.locals.user as any;
---

<Base>
  <section class="page-section">
    <Root child="Lighting" user?={user} client:only="react" />
  </section>
</Base>
