import React from 'react'; import PropTypes from 'prop-types'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import Popover from '../../../ui/popover'; import Box from '../../../ui/box'; import Button from '../../../ui/button'; import Typography from '../../../ui/typography'; import { IconColor, DISPLAY, FLEX_DIRECTION, FONT_WEIGHT, JustifyContent, TextColor, TypographyVariant, } from '../../../../helpers/constants/design-system'; import Identicon from '../../../ui/identicon'; import { shortenAddress } from '../../../../helpers/utils/util'; import { Icon, ICON_NAMES } from '../../../component-library'; const SignatureRequestOriginalWarning = ({ senderAddress, name, onSubmit, onCancel, }) => { const t = useI18nContext(); return ( {t('yourFundsMayBeAtRisk')} {name} {` (${shortenAddress(senderAddress)})`} {t('signatureRequestWarning', [ {t('learnMoreUpperCase')} , ])} ); }; SignatureRequestOriginalWarning.propTypes = { senderAddress: PropTypes.string, name: PropTypes.string, onSubmit: PropTypes.func, onCancel: PropTypes.func, }; export default SignatureRequestOriginalWarning;