31 lines
1.4 KiB
TypeScript
31 lines
1.4 KiB
TypeScript
import { Text, Section } from "@react-email/components";
|
|
import { EmailLayout } from "./layout";
|
|
|
|
interface Props {
|
|
po: { poNumber: string; title: string };
|
|
confirmedBy: string;
|
|
}
|
|
|
|
export function ReceiptConfirmedEmail({ po, confirmedBy }: Props) {
|
|
return (
|
|
<EmailLayout>
|
|
<Text style={{ fontSize: "16px", color: "#111827", marginTop: 0 }}>
|
|
Receipt has been confirmed for purchase order <strong>{po.poNumber}</strong>. The order is now{" "}
|
|
<span style={{ color: "#16a34a", fontWeight: "600" }}>closed</span>.
|
|
</Text>
|
|
<Section style={{ backgroundColor: "#f3f4f6", borderRadius: "8px", padding: "16px" }}>
|
|
<Text style={{ margin: "0 0 4px", fontSize: "13px", color: "#6b7280" }}>PO Number</Text>
|
|
<Text style={{ margin: "0 0 12px", fontWeight: "600", fontFamily: "monospace" }}>{po.poNumber}</Text>
|
|
<Text style={{ margin: "0 0 4px", fontSize: "13px", color: "#6b7280" }}>Title</Text>
|
|
<Text style={{ margin: "0 0 12px" }}>{po.title}</Text>
|
|
<Text style={{ margin: "0 0 4px", fontSize: "13px", color: "#6b7280" }}>Confirmed by</Text>
|
|
<Text style={{ margin: 0 }}>{confirmedBy}</Text>
|
|
</Section>
|
|
<Text style={{ fontSize: "14px", color: "#374151" }}>
|
|
No further action is required. The purchase order has been fully completed and archived.
|
|
</Text>
|
|
</EmailLayout>
|
|
);
|
|
}
|
|
|
|
export default ReceiptConfirmedEmail;
|