RenamedAlert.jsx 397 B

1234567891011121314151617181920
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import { withTranslation } from 'react-i18next';
  4. const RenamedAlert = (props) => {
  5. const { t } = props;
  6. return (
  7. <>
  8. <strong>{ t('Moved') }:</strong>{t('page_page.notice.moved')}
  9. </>
  10. );
  11. };
  12. RenamedAlert.propTypes = {
  13. t: PropTypes.func.isRequired, // i18next
  14. };
  15. export default withTranslation()(RenamedAlert);