Added payment reprint and print wrapper component IO-543
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { MailFilled, PrinterFilled } from "@ant-design/icons";
|
||||
import { Space } from "antd";
|
||||
import React from "react";
|
||||
import { GenerateDocument } from "../../utils/RenderTemplate";
|
||||
|
||||
export default function PrintWrapperComponent({
|
||||
templateObject,
|
||||
messageObject = {},
|
||||
children,
|
||||
}) {
|
||||
return (
|
||||
<Space>
|
||||
{children || null}
|
||||
<PrinterFilled
|
||||
onClick={() => GenerateDocument(templateObject, {}, "p")}
|
||||
/>
|
||||
<MailFilled
|
||||
onClick={() => GenerateDocument(templateObject, messageObject, "e")}
|
||||
/>
|
||||
</Space>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user