| 1 |
import Dialog from 'elementor-app/ui/dialog/dialog'; |
| 2 |
|
| 3 |
export default function NotFound() { |
| 4 |
const url = React.useMemo( () => ( elementorAppConfig.menu_url.split( '#' )?.[ 1 ] || '/site-editor' ), [] ); |
| 5 |
|
| 6 |
return ( |
| 7 |
<Dialog |
| 8 |
title={ __( 'Theme Builder could not be loaded', 'elementor' ) } |
| 9 |
text={ __( 'We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.', 'elementor' ) } |
| 10 |
approveButtonUrl="https://go.elementor.com/app-theme-builder-load-issue/" |
| 11 |
approveButtonColor="link" |
| 12 |
approveButtonTarget="_blank" |
| 13 |
approveButtonText={ __( 'Learn More', 'elementor' ) } |
| 14 |
dismissButtonText={ __( 'Go Back', 'elementor' ) } |
| 15 |
dismissButtonUrl={ url } |
| 16 |
/> |
| 17 |
); |
| 18 |
} |
| 19 |
|