/**
* WordPress dependencies
*/
import { __, sprintf } from '@wordpress/i18n';
import apiFetch from '@wordpress/api-fetch';
import { Guide, __experimentalHeading as Heading } from '@wordpress/components';
import { Stack, Text } from '@wordpress/ui';
type WelcomeGuideModalProps = {
onClose: () => void;
};
export default function WelcomeGuideModal( { onClose }: WelcomeGuideModalProps ) {
const onFinish = () => {
onClose();
if ( ! window.chbeObj.dismissWelcomeGuide ) {
apiFetch( {
path: '/custom-html-block-extension/v1/dismiss_welcome_guide',
method: 'POST',
} );
window.chbeObj.dismissWelcomeGuide = true;
}
};
return (
),
content: (
{ __( 'About Custom HTML Block Extension', 'custom-html-block-extension' ) }
}>
{ sprintf(
/* translators: %s is replaced with the number. */
__( 'Version: %s', 'custom-html-block-extension' ),
window.chbeObj.version
) }
}>
{ __(
'Custom HTML Block Extension extends Custom HTML block to evolve into the advanced code editor.',
'custom-html-block-extension'
) }
),
},
{
image: (
),
content: (
{ __( 'Various color themes', 'custom-html-block-extension' ) }
}>
{ __(
'There are 50 different color themes to choose from, and you can select the one that best suits your taste.',
'custom-html-block-extension'
) }
),
},
{
image: (
),
content: (
{ __( 'Faster coding with Emmet', 'custom-html-block-extension' ) }
}>
{ __(
'Emmet allows you to type shortcuts that are then expanded into full pieces of code. Type less, saving both keystrokes.',
'custom-html-block-extension'
) }
),
},
{
image: (
),
content: (
{ __( 'High customizability', 'custom-html-block-extension' ) }
}>
{ __(
'You can change all kinds of settings to create your ideal editor in advanced mode.',
'custom-html-block-extension'
) }
),
},
{
image: (
),
content: (
{ __( 'More support', 'custom-html-block-extension' ) }
}>
{ __(
'Supports the classic editor, the theme/plugin editor, and import/export editor settings.',
'custom-html-block-extension'
) }
),
},
] }
/>
);
}