import React, { useContext } from 'react'; import { I18nContext } from '../../../contexts/i18n'; import { TextColor, Display, FlexDirection, FontWeight, BlockSize, } from '../../../helpers/constants/design-system'; import { Modal, ModalContent, ModalHeader, ModalOverlay, Text, Box, Button, BUTTON_VARIANT, } from '../../../components/component-library'; interface Props { onEnableSmartTransactionsClick: () => void; onCloseSmartTransactionsOptInPopover: () => void; isOpen: boolean; } export default function SmartTransactionsPopover({ onEnableSmartTransactionsClick, onCloseSmartTransactionsOptInPopover, isOpen, }: Props) { const t = useContext(I18nContext); return ( {t('smartSwapsAreHere')} {t('swapSwapSwitch')} {t('smartSwapsDescription')}
  • {t('stxBenefit1')}
  • {t('stxBenefit2')}
  • {t('stxBenefit3')}
  • {t('stxBenefit4')} {' *'}
  • {t('smartSwapsSubDescription')}  {t('stxYouCanOptOut')} 
    ); }