import React from 'react'; import PropTypes from 'prop-types'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { Text, Box, Button, Modal, ModalContent, ModalHeader, ModalOverlay, BUTTON_VARIANT, BUTTON_SIZES, } from '../../../component-library'; import { BlockSize, Display, FlexDirection, } from '../../../../helpers/constants/design-system'; export default function SnapRemoveWarning({ isOpen, onCancel, onSubmit, snapName, }) { const t = useI18nContext(); return ( {t('pleaseConfirm')} {t('removeSnapConfirmation', [snapName])} ); } SnapRemoveWarning.propTypes = { /** * onCancel handler */ onCancel: PropTypes.func, /** * onSubmit handler */ onSubmit: PropTypes.func, /** * Name of snap */ snapName: PropTypes.string, /** * Whether the modal is open */ isOpen: PropTypes.bool, };