import { Body, Container, Head, Heading, Html, Preview, Section, Text, Tailwind, Button } from "@react-email/components"; import * as React from "react"; interface SendInviteLinkProps { email: string; inviteLink: string; orgName: string; inviterName?: string; expiresInDays: string; } export const SendInviteLink = ({ email, inviteLink, orgName, inviterName, expiresInDays }: SendInviteLinkProps) => { const previewText = `${inviterName} invited to join ${orgName}`; return ( {previewText}
Pangolin
{new Date().toLocaleDateString()}
You're Invite to Join {orgName} Hi {email || "there"}, You’ve been invited to join the organization{" "} {orgName} {inviterName ? ` by ${inviterName}.` : "."} Please access the link below to accept the invite. This invite will expire in{" "} {expiresInDays}{" "} {expiresInDays === "1" ? "day" : "days"}.
Best regards,
Fossorial
); }; export default SendInviteLink;