Files
formbricks/packages/email/components/weekly-summary/CreateReminderNotificationBody.tsx
Dhruwang Jariwala 5ff6e88b3b chore: Transactional emails to React email (#2349)
Co-authored-by: Piyush Gupta <piyushguptaa2z123@gmail.com>
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2024-04-25 13:04:10 +00:00

34 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Container, Text } from "@react-email/components";
import React from "react";
import { WEBAPP_URL } from "@formbricks/lib/constants";
import { TWeeklySummaryNotificationResponse } from "@formbricks/types/weeklySummary";
import { EmailButton } from "../general/EmailButton";
import { NotificationFooter } from "./NotificationFooter";
interface CreateReminderNotificationBodyProps {
notificationData: TWeeklySummaryNotificationResponse;
}
export const CreateReminderNotificationBody = ({ notificationData }: CreateReminderNotificationBodyProps) => {
return (
<Container>
<Text>
Wed love to send you a Weekly Summary, but currently there are no surveys running for
{notificationData.productName}.
</Text>
<Text className="pt-4 font-bold">Dont let a week pass without learning about your users:</Text>
<EmailButton
label="Setup a new survey"
href={`${WEBAPP_URL}/environments/${notificationData.environmentId}/surveys?utm_source=weekly&utm_medium=email&utm_content=SetupANewSurveyCTA`}
/>
<Text className="pt-4">
Need help finding the right survey for your product? Pick a 15-minute slot{" "}
<a href="https://cal.com/johannes/15">in our CEOs calendar</a> or reply to this email :)
</Text>
<NotificationFooter environmentId={notificationData.environmentId} />
</Container>
);
};