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.

1.5 KB
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 type { Database } from "@carbon/database";
import type { CompanySettings } from "../../types";
import QuoteEmail from "../QuoteEmail";

const company = {
  name: "Tombstone Machine Works",
  logoLightIcon: null,
  baseCurrencyCode: "USD"
} as unknown as Database["public"]["Views"]["companies"]["Row"];

const quote = {
  quoteId: "QUO-00042",
  customerReference: "RFQ-77812",
  expirationDate: "2026-08-23",
  externalLinkId: "a1b2c3d4e5f6",
  externalNotes: {
    type: "doc",
    content: [
      {
        type: "paragraph",
        content: [
          {
            type: "text",
            text: "Pricing includes first article inspection. Lead time is 3 weeks after order confirmation."
          }
        ]
      }
    ]
  }
} as unknown as Database["public"]["Tables"]["quote"]["Row"];

const companySettings = {
  digitalQuoteEnabled: true
} as unknown as CompanySettings;

export default function QuoteEmailPreview() {
  return (
    <QuoteEmail
      company={company}
      companySettings={companySettings}
      locale="en-US"
      quote={quote}
      recipient={{
        firstName: "Tom",
        lastName: "Sawyer",
        email: "[email protected]"
      }}
      sender={{
        firstName: "Jane",
        lastName: "Doe",
        email: "[email protected]"
      }}
    />
  );
}