# extendify/0.3.0/src/middleware/hasRequiredPlugins/ErrorInstalling.js

Extendify, version 0.3.0. 34 lines.

- Page: https://pluginprobe.com/plugins/extendify/0.3.0/code/src/middleware/hasRequiredPlugins/ErrorInstalling.js
- Raw: https://pluginprobe.com/plugins/extendify/0.3.0/raw/src/middleware/hasRequiredPlugins/ErrorInstalling.js
- Modified: 2022-01-06T18:08:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/0.3.0/code/src/middleware/hasRequiredPlugins/ErrorInstalling.js#L10-L20`.

```javascript
import { __ } from '@wordpress/i18n'
import { Modal, Button, Notice } from '@wordpress/components'
import { render } from '@wordpress/element'
import RequiredPluginsModal from './RequiredPluginsModal'

export default function ErrorInstalling({ msg }) {
    const goBack = () =>
        render(
            <RequiredPluginsModal />,
            document.getElementById('extendify-root'),
        )

    return (
        <Modal
            style={{
                maxWidth: '500px',
            }}
            title={__('Error installing plugins', 'extendify')}
            isDismissible={false}>
            {__(
                'You have encountered an error that we cannot recover from. Please try again.',
                'extendify',
            )}
            <br />
            <Notice isDismissible={false} status="error">
                {msg}
            </Notice>
            <Button isPrimary onClick={goBack}>
                {__('Go back', 'extendify')}
            </Button>
        </Modal>
    )
}

```
