import { Resend } from "resend"; import { env } from "@/env.mjs"; export const resend = new Resend(env.RESEND_API_KEY || "re_key"); export function getVerificationEmailHtml({ url, appName, }: { url: string; appName: string; }): string { return ` Email Verification - ${appName}

Welcome to ${appName}

Your journey starts here 🎉

Verify Your Email

Hello there,
Thank you for joining ${appName}! To complete your login and get started, please verify your email address by clicking the button below:

Or copy and paste the link below into your browser:
${url}

If you didn’t request this email or believe this was sent in error, you can safely ignore it. This link will expire in 24 hours for security reasons.

`; } export function applyRecordEmailHtml({ appUrl, appName, zone_name, type, name, content, }: { appUrl: string; appName: string; zone_name: string; type: string; name: string; content: string; }) { return ` Record Email - ${appName}
Zone ${zone_name}
Type ${type}
Name ${name}
Content ${content}
Review Record
`; } export function applyRecordToUserEmailHtml({ appUrl, appName, subdomain, }: { appUrl: string; appName: string; subdomain: string; }) { return ` Record Email - ${appName}
Domain: ${subdomain}
Active Record
`; }