import { Heading, Section, Text } from '@react-email/components'; import { EmailLayout } from './components/EmailLayout'; import { Button } from './components/Button'; import { StatusBanner } from './components/StatusBanner'; import { styles } from './components/styles'; import { tCommon } from './i18n/common'; import { tTemplate } from './i18n/templates'; import { resolveLocale, type Locale } from './i18n/types'; import { interpolate } from './utils/interpolate'; import { theme } from './theme'; export interface OrganisationVerifiedEmailProps { locale?: Locale; userName?: string; orgName?: string; ctaUrl?: string; } export const OrganisationVerifiedEmail = ({ locale, userName = 'Helen Tadesse', orgName = 'Yaltopia Tech', ctaUrl = `${theme.brand.website}/b2b`, }: OrganisationVerifiedEmailProps) => { const l = resolveLocale(locale); const t = tTemplate('organisation-verified', l); const common = tCommon(l); return ( {t.banner} {t.heading} {interpolate(t.body1, { userName, orgName })}
{common.regards}
{common.team}
); }; OrganisationVerifiedEmail.PreviewProps = { locale: 'en' } as OrganisationVerifiedEmailProps; export default OrganisationVerifiedEmail;