@@ -24,6 +24,7 @@ export default function PartnerDeactivated({
2424 slug : "acme" ,
2525 } ,
2626 deactivatedReason,
27+ programDeactivated,
2728} : {
2829 partner : {
2930 name : string ;
@@ -34,12 +35,15 @@ export default function PartnerDeactivated({
3435 slug : string ;
3536 } ;
3637 deactivatedReason ?: string ;
38+ programDeactivated ?: boolean ;
3739} ) {
3840 return (
3941 < Html >
4042 < Head />
4143 < Preview >
42- { program . name } has deactivated your partnership with their program.
44+ { programDeactivated
45+ ? `${ program . name } has deactivated their partner program.`
46+ : `${ program . name } has deactivated your partnership with their program.` }
4347 </ Preview >
4448 < Tailwind >
4549 < Body className = "mx-auto my-auto bg-white font-sans" >
@@ -49,36 +53,83 @@ export default function PartnerDeactivated({
4953 </ Section >
5054
5155 < Heading className = "mx-0 p-0 text-lg font-medium text-neutral-600" >
52- { program . name } has deactivated your partnership
56+ { programDeactivated
57+ ? `${ program . name } has deactivated their program`
58+ : `${ program . name } has deactivated your partnership` }
5359 </ Heading >
5460
55- < Text className = "text-sm leading-6 text-neutral-600" >
56- Hello { partner . name } ! Your partnership with the { program . name } { " " }
57- program has been deactivated
58- { deactivatedReason ? (
59- < span className = "font-bold" > { ` ${ deactivatedReason } ` } </ span >
60- ) : (
61- ""
62- ) }
63- .
64- </ Text >
61+ { programDeactivated ? (
62+ < >
63+ < Text className = "text-sm leading-6 text-neutral-600" >
64+ Hello { partner . name } ,
65+ </ Text >
6566
66- < Text className = "text-sm leading-6 text-neutral-600" >
67- All your links have been disabled, but your pending commissions
68- and payouts will remain until they are approved and paid out by
69- the { program . name } team.
70- </ Text >
67+ < Text className = "text-sm leading-6 text-neutral-600" >
68+ We're reaching out to let you know that { program . name } has
69+ deactivated their partner program.
70+ </ Text >
7171
72- < Text className = "text-sm leading-6 text-neutral-600" >
73- If you have any questions, please{ " " }
74- < Link
75- href = { `https://partners.dub.co/messages/${ program . slug } ` }
76- className = "font-semibold text-neutral-700 underline underline-offset-2"
77- >
78- reach out to the { program . name } team ↗
79- </ Link >
80- .
81- </ Text >
72+ < Text className = "text-sm leading-6 text-neutral-600" >
73+ As a result, any { program . name } links you were sharing are now
74+ disabled and will no longer generate new commissions.
75+ </ Text >
76+
77+ < Text className = "text-sm leading-6 text-neutral-600" >
78+ Any commissions earned before the program was deactivated will
79+ still be paid out. If you have pending commissions that are
80+ approved, those payouts will continue to be processed as
81+ usual.
82+ </ Text >
83+
84+ < Text className = "text-sm leading-6 text-neutral-600" >
85+ We recommend removing or replacing any { program . name } links
86+ you currently have live, since they will no longer be eligible
87+ for future commissions.
88+ </ Text >
89+
90+ < Text className = "text-sm leading-6 text-neutral-600" >
91+ If you have questions about the program or your payouts,
92+ please{ " " }
93+ < Link
94+ href = { `https://partners.dub.co/messages/${ program . slug } ` }
95+ className = "font-semibold text-neutral-700 underline underline-offset-2"
96+ >
97+ reach out to the { program . name } team ↗
98+ </ Link >
99+ .
100+ </ Text >
101+ </ >
102+ ) : (
103+ < >
104+ < Text className = "text-sm leading-6 text-neutral-600" >
105+ Hello { partner . name } , your partnership with the { program . name } { " " }
106+ program has been deactivated
107+ { deactivatedReason ? (
108+ < span className = "font-bold" > { ` ${ deactivatedReason } ` } </ span >
109+ ) : (
110+ ""
111+ ) }
112+ .
113+ </ Text >
114+
115+ < Text className = "text-sm leading-6 text-neutral-600" >
116+ All your links have been disabled, but your pending
117+ commissions and payouts will remain until they are approved
118+ and paid out by the { program . name } team.
119+ </ Text >
120+
121+ < Text className = "text-sm leading-6 text-neutral-600" >
122+ If you have any questions, please{ " " }
123+ < Link
124+ href = { `https://partners.dub.co/messages/${ program . slug } ` }
125+ className = "font-semibold text-neutral-700 underline underline-offset-2"
126+ >
127+ reach out to the { program . name } team ↗
128+ </ Link >
129+ .
130+ </ Text >
131+ </ >
132+ ) }
82133
83134 < Footer email = { partner . email } />
84135 </ Container >
0 commit comments