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

30 lines
979 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-09 20:14:20 +00:00
import { SiteHeader } from "./site-header.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={
{
"--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 20:14:20 +00:00
<SidebarInset className="app-main bg-muted ">
<SiteHeader />
<div className="flex flex-1 flex-col">
<div className="@container/main p-(--content-padding) xl:group-data-[theme-content-layout=centered]/layout:container xl:group-data-[theme-content-layout=centered]/layout:mx-auto">
<Outlet />
</div>
</div>
2025-05-18 11:53:00 +00:00
</SidebarInset>
</SidebarProvider>
);
};