All files / emails email-verified.tsx

100% Statements 3/3
100% Branches 4/4
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46                    10x 10x   10x                                                                
/** @jsxImportSource react */
import { Button, Section, Text } from "@react-email/components";
import { EmailLayout, styles } from "./components";
 
export type EmailVerifiedProps = {
	userName?: string;
	onboardingUrl?: string;
};
 
export function EmailVerifiedEmail({ userName, onboardingUrl }: EmailVerifiedProps) {
	const greeting = userName ? `Hi ${userName},` : "Hi,";
	const ctaUrl = onboardingUrl || "/onboarding";
 
	return (
		<EmailLayout preview="Email Verified — You're In!">
			<Section style={styles.section}>
				<Text style={styles.paragraph}>{greeting}</Text>
				<Text style={styles.paragraph}>
					Your email address has been successfully verified. You're now ready to
					complete your profile setup on Interioring.
				</Text>
				<Text style={styles.paragraph}>
					Complete your onboarding to start showcasing your work and connecting
					with clients looking for interior design expertise.
				</Text>
				<Section style={{ textAlign: "center", margin: "32px 0" }}>
					<Button href={ctaUrl} style={styles.button}>
						Complete Onboarding
					</Button>
				</Section>
				<Text style={styles.paragraph}>
					If you have any questions along the way, our support team is here to
					help.
				</Text>
				<Text style={styles.paragraph}>
					Best regards,
					<br />
					The Interioring Team
				</Text>
			</Section>
		</EmailLayout>
	);
}
 
export default EmailVerifiedEmail;