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

28 lines
744 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";
2026-04-12 17:28:26 +00:00
import { AppTopbar } from "./app-topbar.tsx";
2025-05-18 11:53:00 +00:00
2025-09-23 16:38:20 +00:00
export const AppLayout = () => {
2025-05-18 11:53:00 +00:00
return (
<SidebarProvider
style={
{
2026-04-12 17:28:26 +00:00
"--sidebar-width": "16rem",
"--sidebar-width-mobile": "18rem",
2025-05-18 11:53:00 +00:00
} as React.CSSProperties
}
>
2026-04-12 17:28:26 +00:00
<AppSidebar className="bg-sidebar" />
2025-06-24 18:38:57 +00:00
{/* Aquí está el MAIN */}
2026-04-09 20:14:20 +00:00
<SidebarInset className="app-main bg-muted ">
2026-04-12 17:28:26 +00:00
<AppTopbar />
<div className="flex flex-1 flex-col px-4 py-4 sm:px-6 sm:py-6">
<Outlet />
2026-04-09 20:14:20 +00:00
</div>
2025-05-18 11:53:00 +00:00
</SidebarInset>
</SidebarProvider>
);
};