FactuGES_ERP/packages/rdx-ui/src/components/layout/app-layout.tsx

25 lines
681 B
TypeScript
Raw Normal View History

2025-05-18 11:53:00 +00:00
import { SidebarInset, SidebarProvider } from "@repo/shadcn-ui/components";
import { Outlet } from "react-router";
2025-11-13 18:57:45 +00:00
2025-05-18 11:53:00 +00:00
import { AppSidebar } from "./app-sidebar.tsx";
2025-09-23 16:38:20 +00:00
export const AppLayout = () => {
2025-05-18 11:53:00 +00:00
return (
<SidebarProvider
2026-04-01 16:01:35 +00:00
className="bg-amber-500"
2025-05-18 11:53:00 +00:00
style={
{
"--sidebar-width": "calc(var(--spacing) * 72)",
"--header-height": "calc(var(--spacing) * 12)",
} as React.CSSProperties
}
>
2026-04-01 16:01:35 +00:00
<AppSidebar className="bg-sidebar" variant="inset" />
2025-06-24 18:38:57 +00:00
{/* Aquí está el MAIN */}
2026-04-09 18:39:54 +00:00
<SidebarInset className="app-main bg-muted overflow-hidden">
2025-05-19 16:15:01 +00:00
<Outlet />
2025-05-18 11:53:00 +00:00
</SidebarInset>
</SidebarProvider>
);
};