import React, { useState } from 'react'; import { Modal, Button, LoaderSpinner } from '@akinon/next/components'; import type { LinkModalProps } from '../types/custom-render.types'; import { useAppSelector } from '@akinon/next/redux/hooks'; import mpBlackLogo from '../assets/img/masterpass-black-logo.png'; const LinkModal: React.FC = ({ open, onClose, onConfirm, texts }) => { const [isLoading, setIsLoading] = useState(false); const { tokenData } = useAppSelector((state) => state.masterpassRest); const handleConfirm = async () => { setIsLoading(true); await onConfirm(); }; return ( } className="w-full sm:w-[28rem] max-h-[90vh] overflow-y-auto" >

{texts.linkModalDescription.replace( 'PHONE_NUMBER', `+${tokenData?.AccountKey}` )}

{texts.whatIsMasterpassLink}
); }; export default LinkModal;