Skip to content

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.

662 B
Raw Blame
// 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 { linkBlock } from "../../agent.blocks";

export function AgentBlockLink({ input }: { input: unknown }) {
  const parsed = linkBlock.safeParse(input);
  if (!parsed.success) return null;
  const { label, url } = parsed.data;
  return (
    <a
      href={url}
      target="_blank"
      rel="noopener noreferrer"
      className="text-sm text-primary underline underline-offset-2 hover:opacity-80"
    >
      {label}
    </a>
  );
}