Enterprise-CMCS/macpro-mako

View on GitHub
lib/libs/email/content/withdrawRai/emailTemplates/MedSpaCMS.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { CommonEmailVariables, Events } from "shared-types";
import { Container, Html } from "@react-email/components";
import { WithdrawRAI, PackageDetails, BasicFooter } from "../../email-components";

export const MedSpaCMSEmail = (props: {
  variables: Events["RespondToRai"] & CommonEmailVariables;
  relatedEvent: any;
}) => {
  const { variables, relatedEvent } = { ...props };
  return (
    <Html lang="en" dir="ltr">
      <Container>
        <WithdrawRAI {...variables} />
        <PackageDetails
          details={{
            "State or Territory": variables.territory,
            Name: relatedEvent.submitterName,
            "Email Address": relatedEvent.submitterEmail,
            "SPA Package ID": variables.id,
            Summary: variables.additionalInformation,
          }}
          // attachments={variables.attachments}
        />
        <BasicFooter />
      </Container>
    </Html>
  );
};