import React from 'react'; import { useHistory } from 'react-router-dom'; import { BannerAlert } from '../../component-library'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { EXPERIMENTAL_ROUTE } from '../../../helpers/constants/routes'; export default function NftsDetectionNotice() { const t = useI18nContext(); const history = useHistory(); return ( { e.preventDefault(); history.push(`${EXPERIMENTAL_ROUTE}#autodetect-nfts`); }} > {t('newNFTDetectedMessage')} ); }