30 lines
880 B
JavaScript
30 lines
880 B
JavaScript
import React from "react";
|
|
import SendEmailButton from "../../components/send-email-button/send-email-button.container";
|
|
import PartsOrderEmail from "../../emails/parts-order/parts-order.email";
|
|
import { REPORT_QUERY_PARTS_ORDER_BY_PK } from "../../emails/parts-order/parts-order.query";
|
|
|
|
export default function ManageRootPageComponent() {
|
|
//const client = useApolloClient();
|
|
return (
|
|
<div>
|
|
<SendEmailButton
|
|
MessageOptions={{
|
|
from: {
|
|
name: "Kavia"
|
|
},
|
|
to: "patrickwf@gmail.com",
|
|
replyTo: "patrickwf@gmail.com"
|
|
}}
|
|
Template={PartsOrderEmail}
|
|
QueryConfig={[
|
|
REPORT_QUERY_PARTS_ORDER_BY_PK,
|
|
{
|
|
variables: { id: "ebe0fb6b-6ec4-4ae0-8fdc-49bdf1e37ff3" }
|
|
}
|
|
]}>
|
|
Send an Email in new Window
|
|
</SendEmailButton>
|
|
</div>
|
|
);
|
|
}
|