import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { Display, JustifyContent, } from '../../../../helpers/constants/design-system'; import { Text, Modal, ModalOverlay, ModalContent, ModalHeader, Button, BUTTON_VARIANT, Box, BUTTON_SIZES, } from '../../../component-library'; const DetectedTokenIgnoredPopover = ({ partiallyIgnoreDetectedTokens, onCancelIgnore, handleClearTokensSelection, isOpen, }) => { const t = useI18nContext(); return ( {partiallyIgnoreDetectedTokens ? t('importSelectedTokens') : t('areYouSure')} {partiallyIgnoreDetectedTokens ? t('importSelectedTokensDescription') : t('ignoreTokenWarning')} ); }; DetectedTokenIgnoredPopover.propTypes = { partiallyIgnoreDetectedTokens: PropTypes.bool.isRequired, onCancelIgnore: PropTypes.func.isRequired, handleClearTokensSelection: PropTypes.func.isRequired, isOpen: PropTypes.bool.isRequired, }; export default DetectedTokenIgnoredPopover;