import { Box, ModalHeroImage } from '@rocket.chat/fuselage'; import { GenericModal } from '@rocket.chat/ui-client'; import type { ReactElement, ComponentProps } from 'react'; import { useTranslation } from 'react-i18next'; type GenericUpsellModalProps = Omit, 'variant' | 'children' | 'onClose' | 'onDismiss'> & { subtitle?: string | ReactElement; description?: string | ReactElement; img: ComponentProps['src']; imgWidth?: ComponentProps['width']; imgHeight?: ComponentProps['height']; imgAlt?: string; onClose: () => void; onConfirm?: () => void; }; const GenericUpsellModal = ({ tagline, subtitle, img, imgAlt = '', imgWidth, imgHeight, description, confirmText, icon = null, ...props }: GenericUpsellModalProps) => { const { t } = useTranslation(); return ( {subtitle && ( {subtitle} )} {description && ( {description} )} ); }; export default GenericUpsellModal;