File size: 12,875 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
import {
	PLAN_PERSONAL,
	PLAN_PREMIUM,
	PLAN_BUSINESS,
	PLAN_ECOMMERCE,
	getPlan,
} from '@automattic/calypso-products';
import { ExternalLink } from '@automattic/components';
import { localizeUrl, useHasEnTranslation } from '@automattic/i18n-utils';
import styled from '@emotion/styled';
import { useTranslate } from 'i18n-calypso';
import { useCallback } from 'react';
import { useDispatch } from 'react-redux';
import ExternalLinkWithTracking from 'calypso/components/external-link-with-tracking';
import FoldableFAQComponent from 'calypso/components/foldable-faq';
import { recordTracksEvent } from 'calypso/state/analytics/actions';

const FAQHeader = styled.h1`
	font-size: 2rem;
	text-align: center;
	margin: 48px 0;
`;

const FoldableFAQ = styled( FoldableFAQComponent )`
	.foldable-faq__question-text {
		font-size: 1.125rem;
	}
`;

const PlanFAQ = ( { titanMonthlyRenewalCost = 0 } ) => {
	const dispatch = useDispatch();
	const translate = useTranslate();
	const hasEnTranslation = useHasEnTranslation();
	const onFaqToggle = useCallback(
		( faqArgs ) => {
			const { id, isExpanded } = faqArgs;
			const tracksArgs = {
				faq_id: id,
			};

			if ( isExpanded ) {
				// FAQ opened
				dispatch( recordTracksEvent( 'calypso_plans_faq_open', tracksArgs ) );
			} else {
				// FAQ closed
				dispatch( recordTracksEvent( 'calypso_plans_faq_closed', tracksArgs ) );
			}
		},
		[ dispatch ]
	);

	return (
		<div className="plan-faq">
			<FAQHeader className="wp-brand-font">{ translate( 'Frequently Asked Questions' ) }</FAQHeader>
			<FoldableFAQ
				id="faq-1"
				question={ translate( 'Is hosting included?' ) }
				expanded
				onToggle={ onFaqToggle }
			>
				{ translate(
					'Yes! All our plans include fast and reliable hosting that’s optimized for creating and scaling a WordPress site.'
				) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-2"
				question={ translate( 'Can I import content from another service?' ) }
				onToggle={ onFaqToggle }
			>
				<>
					{ translate(
						'It is possible to import your blog content from a variety of other blogging platforms, including Blogger, ' +
							'GoDaddy, Wix, Squarespace, and more. You can also easily import your content from a self-hosted WordPress site.'
					) }
					{ hasEnTranslation(
						'Want a Happiness Engineer to do a free migration of your WordPress site to WordPress.com? ' +
							'{{ExternalLink}}Request a Happiness Engineer{{/ExternalLink}} to handle your migration for free!'
					)
						? translate(
								'{{br /}}{{br /}}Want a Happiness Engineer to do a free migration of your WordPress site to WordPress.com? ' +
									'{{ExternalLink}}Request a Happiness Engineer{{/ExternalLink}} to handle your migration for free!',
								{
									components: {
										br: <br />,
										ExternalLink: (
											<ExternalLink
												href={ localizeUrl(
													'https://wordpress.com/support/request-a-free-migration/'
												) }
											/>
										),
									},
								}
						  )
						: null }
				</>
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-3"
				question={ translate( 'Are traffic and bandwidth really unlimited?' ) }
				onToggle={ onFaqToggle }
			>
				{ translate(
					'Absolutely, and you will never be hit with any surprise usage fees. With WordPress.com, ' +
						'you’ll be hosted on our infinitely scalable and globally distributed server infrastructure, ' +
						'which means your site will always be available and load fast, no matter how popular your site becomes.'
				) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-4"
				question={ translate( 'Can I use a domain I already own?' ) }
				onToggle={ onFaqToggle }
			>
				{ translate(
					'Yes! You can connect your domain for free to any WordPress.com paid plan (we won’t charge ' +
						'you a separate domain registration fee). You may either keep the domain at your current ' +
						'registrar or transfer it to us, whichever you prefer.'
				) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-5"
				question={ translate( 'Can I host multiple sites?' ) }
				onToggle={ onFaqToggle }
			>
				{ translate(
					'Yes, you can host as many sites as you like, but they each need a separate plan. You can ' +
						'choose the appropriate plan for each site individually so you’ll pay for only the features ' +
						'you need.{{br /}}{{br /}}We have a dashboard that helps you manage all your WordPress.com and Jetpack-connected ' +
						'websites, all from one simple and centralized admin tool.',
					{
						components: { br: <br /> },
					}
				) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-6"
				question={ translate( 'What is your refund policy?' ) }
				onToggle={ onFaqToggle }
			>
				{ translate(
					"If you aren't satisfied with our product, you can cancel anytime within the refund period " +
						'for a prompt and courteous refund, no questions asked. The refund timeframes are:{{br /}}' +
						'{{ul}}' +
						'{{li}}14 days for annual WordPress.com plans{{/li}}' +
						'{{li}}7 days for monthly WordPress.com plans{{/li}}' +
						'{{li}}96 hours for new domain registrations{{/li}}' +
						'{{/ul}}',
					{
						components: { br: <br />, ul: <ul />, li: <li /> },
					}
				) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-7"
				question={ translate(
					'I want to transfer an existing site, will purchasing a plan now break it?'
				) }
				onToggle={ onFaqToggle }
			>
				{ hasEnTranslation(
					'No it won’t! You’re welcome to create your new site with us before pointing the domain here. ' +
						'That way your current site can stay “live” until your new one is ready.{{br /}}{{br /}}' +
						'We recommend getting a plan now because they have other features you might find useful, ' +
						'including expert support from our team. Just avoid using the domain options until ' +
						'you’re ready, and then you can connect or transfer the domain.{{br /}}{{br /}}' +
						'Our Happiness Engineers can also do the migration for you. {{ExternalLink}}Request a Happiness Engineer{{/ExternalLink}} to migrate your site for free!'
				)
					? translate(
							'No it won’t! You’re welcome to create your new site with us before pointing the domain here. ' +
								'That way your current site can stay “live” until your new one is ready.{{br /}}{{br /}}' +
								'We recommend getting a plan now because they have other features you might find useful, ' +
								'including expert support from our team. Just avoid using the domain options until ' +
								'you’re ready, and then you can connect or transfer the domain.{{br /}}{{br /}}' +
								'Our Happiness Engineers can also do the migration for you. {{ExternalLink}}Request a Happiness Engineer{{/ExternalLink}} to migrate your site for free!',
							{
								components: {
									br: <br />,
									ExternalLink: (
										<ExternalLink
											href={ localizeUrl(
												'https://wordpress.com/support/request-a-free-migration/'
											) }
										/>
									),
								},
							}
					  )
					: translate(
							'No it won’t! You’re welcome to create your new site with us before pointing the domain here. ' +
								'That way your current site can stay “live” until your new one is ready.{{br /}}{{br /}}' +
								'We recommend getting a plan now because they have other features you might find useful, ' +
								'including direct live chat and email support. Just avoid using the domain options until ' +
								'you’re ready, and then you can connect or transfer the domain.',
							{
								components: { br: <br /> },
							}
					  ) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-8"
				question={ translate( 'Can I get an email account?' ) }
				onToggle={ onFaqToggle }
			>
				{ titanMonthlyRenewalCost
					? translate(
							'Absolutely! We offer a few different options to meet your needs. For most customers, our ' +
								'Professional Email service is the smart choice. This robust hosted email solution is ' +
								'available for any domain hosted with WordPress.com and starts at just %(titanMonthlyRenewalCost)s/mo per mailbox.{{br /}}{{br /}}' +
								'We also offer a Google Workspace integration, and for users who need something simpler, you ' +
								'can set up email forwarding for free.',
							{
								components: { br: <br /> },
								args: { titanMonthlyRenewalCost },
							}
					  )
					: translate(
							'Absolutely! We offer a few different options to meet your needs. For most customers, our ' +
								'Professional Email service is the smart choice. This robust hosted email solution is ' +
								'available for any domain hosted with WordPress.com.{{br /}}{{br /}}' +
								'We also offer a Google Workspace integration, and for users who need something simpler, you ' +
								'can set up email forwarding for free.',
							{
								components: { br: <br /> },
							}
					  ) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-9"
				question={ translate( 'Can I install plugins?' ) }
				onToggle={ onFaqToggle }
			>
				{ translate(
					'Yes! When you subscribe to the WordPress.com %(businessPlanName)s or %(ecommercePlanName)s plans, you’ll be able to ' +
						'search for and install over 50,000 available plugins in the WordPress repository.',
					{
						args: {
							businessPlanName: getPlan( PLAN_BUSINESS ).getTitle(),
							ecommercePlanName: getPlan( PLAN_ECOMMERCE ).getTitle(),
						},
					}
				) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-10"
				question={ translate( 'Can I install my own theme?' ) }
				onToggle={ onFaqToggle }
			>
				{ translate(
					'Yes! All plans give you access to our directory of free and premium themes that have been ' +
						'handpicked and reviewed for quality by our team. With the WordPress.com %(businessPlanName)s or ' +
						"%(ecommercePlanName)s plan, you can upload and install any theme you'd like.",
					{
						args: {
							businessPlanName: getPlan( PLAN_BUSINESS ).getTitle(),
							ecommercePlanName: getPlan( PLAN_ECOMMERCE ).getTitle(),
						},
					}
				) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-11"
				question={ translate( 'Can you build a site for me?' ) }
				onToggle={ onFaqToggle }
			>
				{ translate(
					'We sure can! If you need a hand launching your website, take a look at our express site setup service. ' +
						'Our in-house experts will create your site, and you’ll be ready to go live in four business days or less. ' +
						'To learn more, {{ExternalLinkWithTracking}}click here{{/ExternalLinkWithTracking}}.',
					{
						components: {
							ExternalLinkWithTracking: (
								<ExternalLinkWithTracking
									icon
									href="https://wordpress.com/website-design-service/"
									tracksEventName="calypso_signup_step_plans_faq_difm_lp"
								/>
							),
						},
					}
				) }
			</FoldableFAQ>
			<FoldableFAQ
				id="faq-12"
				question={ translate( 'Can I talk to a live person?' ) }
				onToggle={ onFaqToggle }
			>
				{ hasEnTranslation(
					'We’d love to talk with you! All paid plans include access to support from our ' +
						'team of WordPress experts (we call them Happiness Engineers).{{br /}}{{br /}}' +
						'And if you have pre-purchase questions, we can talk at the checkout page. Select the plan ' +
						'that looks like the best fit for you and click the “Questions? Ask a Happiness Engineer” ' +
						'link on the next page.'
				)
					? translate(
							'We’d love to talk with you! All paid plans include access to support from our ' +
								'team of WordPress experts (we call them Happiness Engineers).{{br /}}{{br /}}' +
								'And if you have pre-purchase questions, we can talk at the checkout page. Select the plan ' +
								'that looks like the best fit for you and click the “Questions? Ask a Happiness Engineer” ' +
								'link on the next page.',
							{
								components: { br: <br /> },
							}
					  )
					: translate(
							'We’d love to chat with you! All paid plans include access to one-on-one support from our ' +
								'team of WordPress experts (we call them Happiness Engineers). The %(personalPlanName)s plan includes ' +
								'email support while the %(premiumPlanName)s plan and above all include live chat support.{{br /}}{{br /}}' +
								'If you have pre-purchase questions, we offer live chat on the checkout page. Select the plan ' +
								'that looks like the best fit for you and click the “Questions? Ask a Happiness Engineer” ' +
								'link on the next page.',
							{
								args: {
									personalPlanName: getPlan( PLAN_PERSONAL ).getTitle(),
									premiumPlanName: getPlan( PLAN_PREMIUM ).getTitle(),
								},
								components: { br: <br /> },
							}
					  ) }
			</FoldableFAQ>
		</div>
	);
};

export default PlanFAQ;