Files
formbricks-formbricks/packages/email/emails/weekly-summary/create-reminder-notification-body.tsx
2024-10-10 09:08:46 +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 type { TWeeklySummaryNotificationResponse } from "@formbricks/types/weekly-summary";
import { EmailButton } from "../../components/email-button";
import { NotificationFooter } from "./notification-footer";
interface CreateReminderNotificationBodyProps {
notificationData: TWeeklySummaryNotificationResponse;
}
export function CreateReminderNotificationBody({
notificationData,
}: CreateReminderNotificationBodyProps): React.JSX.Element {
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
href={`${WEBAPP_URL}/environments/${notificationData.environmentId}/surveys?utm_source=weekly&utm_medium=email&utm_content=SetupANewSurveyCTA`}
label="Setup a new survey"
/>
<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>
);
}