1 import type { HTMLAttributes } from 'react';
3 import { c } from 'ttag';
5 import { Href } from '@proton/atoms';
6 import useConfig from '@proton/components/hooks/useConfig';
7 import { APPS } from '@proton/shared/lib/constants';
8 import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url';
10 type Props = HTMLAttributes<HTMLDivElement>;
12 const BitcoinInfoMessage = ({ ...rest }: Props) => {
13 const { APP_NAME } = useConfig();
16 <div className="mb-6" {...rest} data-testid="bitcoin-info-message">
19 .t`Submit a deposit using the following address or scan the QR code. Your deposit will be reflected in your account after confirmation.`}
23 APP_NAME === APPS.PROTONVPN_SETTINGS
24 ? 'https://protonvpn.com/support/vpn-bitcoin-payments/'
25 : getKnowledgeBaseUrl('/pay-with-bitcoin')
27 >{c('Link').t`How to pay with Bitcoin?`}</Href>
32 export default BitcoinInfoMessage;