import PropTypes from 'prop-types';
import React from 'react';
import { INVALID_CONFIG_MESSAGE } from '../../constants/config';

export default function InvalidConfiguration (props) {
    return (
        <div className="cheryl__row-container">
            <div className="cheryl__alert">{props.message || INVALID_CONFIG_MESSAGE}</div>
        </div>
    );
}

InvalidConfiguration.propTypes = {
    message: PropTypes.oneOfType([
        PropTypes.string,
        PropTypes.object
    ]),
};
