CloudLibrary
1 year ago
Settings
1 year ago
StarterSites
3 years ago
App.js
2 years ago
Card.js
3 years ago
CategoriesTabs.js
3 years ago
CategorySelector.js
2 years ago
CustomTooltip.js
3 years ago
DocNotice.js
2 years ago
EditorSelector.js
2 years ago
EditorTabs.js
4 years ago
Header.js
2 years ago
Icon.js
2 years ago
ImportModal.js
1 year ago
ImportModalError.js
2 years ago
ImportModalMock.js
4 years ago
ImportModalNote.js
4 years ago
ImportStepper.js
1 year ago
InstallModal.js
1 year ago
License.js
2 years ago
LicensePanelContext.js
3 years ago
Loading.js
4 years ago
Main.js
1 year ago
Migration.js
4 years ago
NewTCNotice.js
1 year ago
Notification.js
4 years ago
OnboardingContent.js
4 years ago
PreviewFrame.js
3 years ago
Search.js
2 years ago
StarterSiteCard.js
3 years ago
ImportModalNote.js
35 lines
| 1 | import classnames from 'classnames'; |
| 2 | |
| 3 | import { Dashicon, Button } from '@wordpress/components'; |
| 4 | import { __ } from '@wordpress/i18n'; |
| 5 | |
| 6 | const ImportModalNote = ( { data, externalInstalled } ) => { |
| 7 | const external = data.external_plugins || null; |
| 8 | const classes = classnames( [ 'well' ] ); |
| 9 | return external && ! externalInstalled ? ( |
| 10 | <div className={ classes }> |
| 11 | <span> |
| 12 | <Dashicon icon="info" /> |
| 13 | { __( |
| 14 | 'To import this demo you have to install the following plugins', |
| 15 | 'templates-patterns-collection' |
| 16 | ) } |
| 17 | </span> |
| 18 | <ul> |
| 19 | |
| 20 | { external.map( ( plugin, index ) => ( |
| 21 | <li key={ index }> |
| 22 | <Button isLink href={ plugin.author_url }> |
| 23 | { plugin.name } |
| 24 | </Button> |
| 25 | </li> |
| 26 | ) ) } |
| 27 | </ul> |
| 28 | </div> |
| 29 | ) : ( |
| 30 | '' |
| 31 | ); |
| 32 | }; |
| 33 | |
| 34 | export default ImportModalNote; |
| 35 |