import React from 'react';
function ErrorMessage(props) {
    const { error } = props;
    if (process.env.NODE_ENV === 'development') {
        return (<span style={{
                marginBottom: 24,
                color: 'red',
                fontSize: 14,
                marginLeft: 24,
                marginRight: 24,
            }}>
                {typeof error === 'object' ? error.message : error}
            </span>);
    }
    return null;
}
export default ErrorMessage;
