import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import Popover from '../../../ui/popover'; import Button from '../../../ui/button'; import Typography from '../../../ui/typography/typography'; import { TYPOGRAPHY } from '../../../../helpers/constants/design-system'; const DetectedTokenIgnoredPopover = ({ partiallyIgnoreDetectedTokens, onCancelIgnore, handleClearTokensSelection, }) => { const t = useI18nContext(); const footer = ( <> ); return ( {partiallyIgnoreDetectedTokens ? t('importSelectedTokensDescription') : t('ignoreTokenWarning')} ); }; DetectedTokenIgnoredPopover.propTypes = { partiallyIgnoreDetectedTokens: PropTypes.bool.isRequired, onCancelIgnore: PropTypes.func.isRequired, handleClearTokensSelection: PropTypes.func.isRequired, }; export default DetectedTokenIgnoredPopover;