import React from 'react';

const ErrorBoundary = ({ children }) => {
  try {
    return /*#__PURE__*/ React.createElement(React.Fragment, null, children);
  } catch (error) {
    return /*#__PURE__*/ React.createElement(
      'p',
      null,
      'An error occured on this page'
    );
  }
};

export default ErrorBoundary;
