| 1 |
import { __ } from '@wordpress/i18n' |
| 2 |
import type { CalloutContent } from '../../common/demo/DemoCallout' |
| 3 |
import type { DemoStage } from './types' |
| 4 |
|
| 5 |
const STEPS: Partial<Record<DemoStage, CalloutContent>> = { |
| 6 |
library: { |
| 7 |
step: __('Step 1 of 4', 'code-snippets'), |
| 8 |
title: __('Your whole cloud, in one place', 'code-snippets'), |
| 9 |
body: __('Every snippet and bundle saved to your Code Snippets Cloud account is listed here, on every site you connect — so work you did once is never more than a click away.', 'code-snippets') |
| 10 |
}, |
| 11 |
preview: { |
| 12 |
step: __('Step 2 of 4', 'code-snippets'), |
| 13 |
title: __('Read it before you take it', 'code-snippets'), |
| 14 |
body: __('Preview shows the full code without leaving the page, so you can check exactly what a snippet does before it touches your site.', 'code-snippets') |
| 15 |
}, |
| 16 |
download: { |
| 17 |
step: __('Step 3 of 4', 'code-snippets'), |
| 18 |
title: __('Download in one click', 'code-snippets'), |
| 19 |
body: __('The snippet lands in your snippets table straight away — and inactive, so nothing runs until you have looked it over and switched it on.', 'code-snippets') |
| 20 |
}, |
| 21 |
synced: { |
| 22 |
step: __('Step 4 of 4', 'code-snippets'), |
| 23 |
title: __('Kept in sync', 'code-snippets'), |
| 24 |
body: __('Once downloaded the row shows as synced, with an edit link instead of a download button. Change it here or in the cloud and the two are kept together.', 'code-snippets') |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
export const getCallout = (stage: DemoStage): CalloutContent | undefined => |
| 29 |
STEPS[stage] |
| 30 |
|