| 1 |
import React from 'react'; |
| 2 |
import UIContainer from '../UIComponents/UIContainer'; |
| 3 |
import HubspotWrapper from './HubspotWrapper'; |
| 4 |
import { pluginPath } from '../../constants/leadinConfig'; |
| 5 |
import { __ } from '@wordpress/i18n'; |
| 6 |
|
| 7 |
export default function PreviewDisabled() { |
| 8 |
const errorHeader = __('Preview Unavailable', 'leadin'); |
| 9 |
const errorMessage = `${__( |
| 10 |
'This block cannot be previewed within the Full Site Editor', |
| 11 |
'leadin' |
| 12 |
)} ${__('Switch to the Block Editor to view the content', 'leadin')}`; |
| 13 |
|
| 14 |
return ( |
| 15 |
<HubspotWrapper pluginPath={pluginPath}> |
| 16 |
<UIContainer textAlign="center"> |
| 17 |
<h4>{errorHeader}</h4> |
| 18 |
<p> |
| 19 |
<b>{errorMessage}</b> |
| 20 |
</p> |
| 21 |
</UIContainer> |
| 22 |
</HubspotWrapper> |
| 23 |
); |
| 24 |
} |
| 25 |
|