|
| 1 | +import { Preview, Section, Text } from '@react-email/components' |
| 2 | +import BodyText from '../components/BodyText' |
| 3 | +import Footer from '../components/Footer' |
| 4 | +import IntroWithHi from '../components/IntroWithHi' |
| 5 | +import PolarHeader from '../components/PolarHeader' |
| 6 | +import Wrapper from '../components/Wrapper' |
| 7 | +import type { schemas } from '../types' |
| 8 | + |
| 9 | +export function OrganizationAccountUnlink({ |
| 10 | + email, |
| 11 | + organization_kept_name, |
| 12 | + organizations_unlinked, |
| 13 | +}: schemas['OrganizationAccountUnlinkProps']) { |
| 14 | + return ( |
| 15 | + <Wrapper> |
| 16 | + <Preview> |
| 17 | + Important: Organization Account Update for {organization_kept_name} |
| 18 | + </Preview> |
| 19 | + <PolarHeader /> |
| 20 | + <IntroWithHi> |
| 21 | + We're writing to inform that we needed to unlink some of your |
| 22 | + organizations from Stripe. The problem is that multiple organizations |
| 23 | + shared the same Stripe account, and for security and compliance reasons |
| 24 | + we had to unlink them. |
| 25 | + </IntroWithHi> |
| 26 | + <Section> |
| 27 | + <BodyText> |
| 28 | + Your organization{' '} |
| 29 | + <span className="font-bold">{organization_kept_name}</span> has |
| 30 | + retained the connected account, and{' '} |
| 31 | + <span className="font-bold">no data has been lost</span>. |
| 32 | + </BodyText> |
| 33 | + </Section> |
| 34 | + <Section className="rounded-lg border border-blue-200 bg-blue-50 p-4"> |
| 35 | + <Text className="mb-2 text-[16px] font-bold text-blue-900"> |
| 36 | + What This Means |
| 37 | + </Text> |
| 38 | + <ul className="ml-4 list-disc text-[14px] text-blue-900"> |
| 39 | + <li className="mb-2"> |
| 40 | + <span className="font-bold">{organization_kept_name}</span> keeps |
| 41 | + the existing account setup with no changes required. |
| 42 | + </li> |
| 43 | + <li className="mb-2"> |
| 44 | + The following organizations will need to complete the Stripe setup |
| 45 | + again: |
| 46 | + <ul className="ml-4 mt-2 list-disc"> |
| 47 | + {organizations_unlinked.map((org) => ( |
| 48 | + <li key={org} className="mb-1"> |
| 49 | + {org} |
| 50 | + </li> |
| 51 | + ))} |
| 52 | + </ul> |
| 53 | + </li> |
| 54 | + </ul> |
| 55 | + </Section> |
| 56 | + <Section className="rounded-lg border border-yellow-200 bg-yellow-50 p-4"> |
| 57 | + <Text className="mb-2 text-[16px] font-bold text-yellow-900"> |
| 58 | + Important Information |
| 59 | + </Text> |
| 60 | + <ul className="ml-4 list-disc text-[14px] text-yellow-900"> |
| 61 | + <li className="mb-2"> |
| 62 | + <span className="font-bold">Payments:</span> Not blocked - customers |
| 63 | + can continue making payments |
| 64 | + </li> |
| 65 | + <li className="mb-2"> |
| 66 | + <span className="font-bold">Withdrawals:</span> Blocked until Stripe |
| 67 | + setup is completed for the affected organizations |
| 68 | + </li> |
| 69 | + <li className="mb-2"> |
| 70 | + <span className="font-bold">Payout history:</span> All payout |
| 71 | + history is still available on{' '} |
| 72 | + <span className="font-bold">{organization_kept_name}</span>. |
| 73 | + </li> |
| 74 | + </ul> |
| 75 | + </Section> |
| 76 | + <Section> |
| 77 | + <BodyText> |
| 78 | + To restore full functionality for the organizations that need Stripe |
| 79 | + setup, please visit your organization settings and complete the Stripe |
| 80 | + connection process. |
| 81 | + </BodyText> |
| 82 | + </Section> |
| 83 | + <Section> |
| 84 | + <BodyText> |
| 85 | + If you have any questions or concerns, please don't hesitate to reach |
| 86 | + out to our support team. |
| 87 | + </BodyText> |
| 88 | + </Section> |
| 89 | + <Footer email={email} /> |
| 90 | + </Wrapper> |
| 91 | + ) |
| 92 | +} |
| 93 | + |
| 94 | +OrganizationAccountUnlink.PreviewProps = { |
| 95 | + |
| 96 | + organization_kept_name: 'Acme Inc.', |
| 97 | + organizations_unlinked: ['Beta Corp', 'Gamma LLC'], |
| 98 | +} |
| 99 | + |
| 100 | +export default OrganizationAccountUnlink |
0 commit comments