import React from 'react'; // eslint-disable-line no-unused-vars import PropTypes from 'prop-types'; import { _t } from '../../../languageHandler'; const AppWarning = (props) => { return (
{_t('Warning!')}
{ props.errorMsg }
); }; AppWarning.propTypes = { errorMsg: PropTypes.string, }; AppWarning.defaultProps = { errorMsg: 'Error', }; export default AppWarning;