import React from 'react';
import {__} from "@wordpress/i18n";

const FallbackRender = ({error}: any) => {
	return (
		<div role="alert" className={'hulk-error-boundary'}>
			<pre style={{color: "red"}}>
				{__('Something went wrong:', 'international-telephone-field-for-elementor-form')}
				<br/>
				{error?.message || JSON.stringify(error)}
			</pre>
		</div>
	);
};

export default FallbackRender;
