StylesOnboarder.jsx
28 lines
| 1 | import { __ } from '@wordpress/i18n'; |
| 2 | import { createInterpolateElement } from '@wordpress/element'; |
| 3 | import { styles } from '@wordpress/icons'; |
| 4 | |
| 5 | import { OnboardNotice } from '..'; |
| 6 | |
| 7 | function Icon() { |
| 8 | return ( |
| 9 | <span className="gb-inline-icon">{ styles }</span> |
| 10 | ); |
| 11 | } |
| 12 | |
| 13 | export function StylesOnboarder() { |
| 14 | return ( |
| 15 | <OnboardNotice |
| 16 | title={ __( 'Styles', 'generateblocks' ) } |
| 17 | onboardingKey={ 'styles_panel' } |
| 18 | > |
| 19 | <p>{ createInterpolateElement( |
| 20 | __( 'Block styles can be found by clicking on the <Styles /> icon.', 'generateblocks' ), |
| 21 | { |
| 22 | Styles: <Icon />, |
| 23 | } |
| 24 | ) }</p> |
| 25 | </OnboardNotice> |
| 26 | ); |
| 27 | } |
| 28 |