import React, { useContext } from 'react'; import PropTypes from 'prop-types'; import { I18nContext } from '../../../contexts/i18n'; import Button from '../../../components/ui/button'; import Box from '../../../components/ui/box'; import Popover from '../../../components/ui/popover'; import Typography from '../../../components/ui/typography'; import { TypographyVariant, DISPLAY, TextVariant, FLEX_DIRECTION, FONT_WEIGHT, TextColor, } from '../../../helpers/constants/design-system'; import { Text } from '../../../components/component-library/text/deprecated'; import PopoverCustomBackground from '../popover-custom-background/popover-custom-background'; export default function SmartTransactionsPopover({ onEnableSmartTransactionsClick, onCloseSmartTransactionsOptInPopover, }) { const t = useContext(I18nContext); return ( } footerClassName="smart-transactions-popover__footer" className="smart-transactions-popover" CustomBackground={() => { return ( ); }} > {t('swapSwapSwitch')} {t('smartSwapsDescription')}
  • {t('stxBenefit1')}
  • {t('stxBenefit2')}
  • {t('stxBenefit3')}
  • {t('stxBenefit4')} {' *'}
  • {t('smartSwapsSubDescription')}  {t('stxYouCanOptOut')} 
    ); } SmartTransactionsPopover.propTypes = { onEnableSmartTransactionsClick: PropTypes.func.isRequired, onCloseSmartTransactionsOptInPopover: PropTypes.func.isRequired, };