import React from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; const NotFoundAlert = (props) => { const { t, isHidden } = props; function clickHandler(viewType) { if (props.onPageCreateClicked === null) { return; } props.onPageCreateClicked(viewType); } if (isHidden) { return null; } return (

{t('not_found_page.page_not_exist_alert')}

); }; NotFoundAlert.propTypes = { t: PropTypes.func.isRequired, // i18next onPageCreateClicked: PropTypes.func, isHidden: PropTypes.bool.isRequired, }; export default withTranslation()(NotFoundAlert);