2022-06-12 07:14:46 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-06-21 15:29:17 -07:00
|
|
|
import { Modal } from 'soapbox/components/ui';
|
2022-11-15 09:23:36 -08:00
|
|
|
import DetailedCryptoAddress from 'soapbox/features/crypto-donate/components/detailed-crypto-address';
|
2022-06-12 07:14:46 -07:00
|
|
|
|
2022-11-15 09:23:36 -08:00
|
|
|
import type { ICryptoAddress } from '../../crypto-donate/components/crypto-address';
|
2022-06-12 07:14:46 -07:00
|
|
|
|
2022-06-21 15:29:17 -07:00
|
|
|
const CryptoDonateModal: React.FC<ICryptoAddress & { onClose: () => void }> = ({ onClose, ...props }) => {
|
|
|
|
|
2022-06-12 07:14:46 -07:00
|
|
|
return (
|
2022-06-21 15:29:17 -07:00
|
|
|
<Modal onClose={onClose} width='xs'>
|
|
|
|
<div className='crypto-donate-modal'>
|
|
|
|
<DetailedCryptoAddress {...props} />
|
|
|
|
</div>
|
|
|
|
</Modal>
|
2022-06-12 07:14:46 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export default CryptoDonateModal;
|