SubscriptionFailedEmail.tsx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import Link from "next/link";
  2. import { Section, Text } from "@react-email/components";
  3. import { getServerUrl } from "@/shared/lib/server-url";
  4. import { SiteConfig } from "@/shared/config/site-config";
  5. import { BaseEmailLayout } from "./utils/BaseEmailLayout";
  6. export default function SubscribtionFailedEmail() {
  7. return (
  8. <BaseEmailLayout previewText={"Important information about your ${SiteConfig.title} account"}>
  9. <Section className="my-6">
  10. <Text className="text-lg leading-6">Hello,</Text>
  11. <Text className="text-lg leading-6">{"Your last payment didn't go through, so your extra features are on hold."}</Text>
  12. <Text className="text-lg leading-6">
  13. {"We've noticed an issue with your recent payment, which affects your access to our premium features."}
  14. </Text>
  15. <Text className="text-lg leading-6">
  16. {
  17. "To resolve this and continue enjoying all the benefits, simply update your payment details through the link below. It's quick and straightforward!"
  18. }
  19. straightforward!
  20. </Text>
  21. <Text className="text-lg leading-6">
  22. <Link className="text-sky-500 hover:underline" href={`${getServerUrl()}/account/billing`}>
  23. Click to Update Payment and Keep Using ${SiteConfig.title}
  24. </Link>
  25. </Text>
  26. <Text className="text-lg leading-6">
  27. {"Thank you for your prompt attention to this matter. We're here to help if you have any questions."}
  28. </Text>
  29. </Section>
  30. <Text className="text-lg leading-6">
  31. Best,
  32. <br />- {SiteConfig.maker.name} from {SiteConfig.title}
  33. </Text>
  34. </BaseEmailLayout>
  35. );
  36. }