import React from 'react'; import PropTypes from 'prop-types'; import { BUTTON_VARIANT, Button, Box, Modal, ModalOverlay, ModalContent, ModalHeader, Text, } from '../../component-library'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { AlignItems, Display, FlexDirection, JustifyContent, TextAlign, TextVariant, } from '../../../helpers/constants/design-system'; export enum ConfigureSnapPopupType { CONFIGURE = 'configure', INSTALL = 'install', } export default function ConfigureSnapPopup({ type, isOpen, onClose, link, }: { type: ConfigureSnapPopupType; isOpen: boolean; onClose: () => void; link: string; }) { const t = useI18nContext(); return ( {type === ConfigureSnapPopupType.CONFIGURE ? t('configureSnapPopupTitle') : t('configureSnapPopupInstallTitle')} {type === ConfigureSnapPopupType.CONFIGURE ? t('configureSnapPopupDescription') : t('configureSnapPopupInstallDescription')} {t('configureSnapPopupLink')} ); } ConfigureSnapPopup.propTypes = { type: PropTypes.oneOf([ ConfigureSnapPopupType.CONFIGURE, ConfigureSnapPopupType.INSTALL, ]).isRequired, isOpen: PropTypes.bool.isRequired, onClose: PropTypes.func.isRequired, link: PropTypes.string.isRequired, };