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 { cn } from "@carbon/react";
import type { ReactNode } from "react";
export type FieldEmptyStateProps = {
title: ReactNode;
description: ReactNode;
icon?: ReactNode;
className?: string;
};
export const fieldEmptyStateLinkClassName =
"font-medium text-primary underline decoration-primary/30 underline-offset-2 transition-colors hover:decoration-primary";
const FieldEmptyState = ({
title,
description,
icon,
className
}: FieldEmptyStateProps) => {
return (
<div
className={cn(
"flex flex-col items-center justify-center gap-3 px-5 py-7 text-center",
className
)}
>
{icon && (
<div className="text-muted-foreground/70 [&_svg]:size-5 [&_svg]:shrink-0">
{icon}
</div>
)}
<div className="flex flex-col gap-1">
<p className="text-sm font-medium text-foreground text-balance">
{title}
</p>
<p className="mx-auto max-w-[15rem] text-[0.8125rem] leading-5 text-muted-foreground text-pretty">
{description}
</p>
</div>
</div>
);
};
FieldEmptyState.displayName = "FieldEmptyState";
export default FieldEmptyState;