Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
// SPDX-License-Identifier: AGPL-3.0-only
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
import type { ReactNode } from "react";
import { CourseSidebar } from "./CourseSidebar";
/** The learn surface's two-pane shell: sticky course sidebar (lg+) + content.
* Shared by the course layout, lesson, and challenge pages so navigation
* context is always present. `activeCourseId` highlights the current course
* on pages whose URL isn't `/course/*`. */
export function LearnShell({
children,
activeCourseId,
rail
}: {
children: ReactNode;
activeCourseId?: string;
rail?: ReactNode;
}) {
return (
<div className="mx-auto flex w-full max-w-370">
<CourseSidebar activeCourseId={activeCourseId} />
<main className="min-w-0 flex-1 px-6 pb-24 pt-10 lg:px-14">
{children}
</main>
{rail ? (
<aside className="hidden w-56 shrink-0 py-10 pr-8 xl:block">
{rail}
</aside>
) : null}
</div>
);
}