import React from "react";
import { Error } from "react-admin";

export const DataError = ({ error, errorInfo, ...props }) => (
	<Error
		error={error}
		errorInfo={errorInfo}
		title="An error occurred"
		message="There was an error while processing your request."
		{...props}
	/>
);
