import React from 'react';
import Button from '../../../components/Button';

var ErrorMessage = function ErrorMessage(_ref) {
  var error = _ref.error,
      btnProps = _ref.btnProps;
  return React.createElement("div", {
    className: 'row'
  }, React.createElement("div", {
    className: 'col col-xs-12 text-center'
  }, React.createElement("h2", null, "Sorry, something went wrong!"), React.createElement("p", null, error), btnProps && React.createElement(Button, btnProps)));
};

export default ErrorMessage;