Remove payments API routing initialization
[ProtonMail-WebClient.git] / packages / components / containers / payments / PaymentInfo.tsx
blob1fc9ca3d8519c3c85946c7347099e494cb7fc243
1 import { c } from 'ttag';
3 import type { PlainPaymentMethodType } from '@proton/payments';
4 import { PAYMENT_METHOD_TYPES, methodMatches } from '@proton/payments';
6 interface Props {
7     paymentMethodType?: PlainPaymentMethodType;
10 const PaymentInfo = ({ paymentMethodType }: Props) => {
11     if (
12         methodMatches(paymentMethodType, [
13             PAYMENT_METHOD_TYPES.BITCOIN,
14             PAYMENT_METHOD_TYPES.CHARGEBEE_BITCOIN,
15             PAYMENT_METHOD_TYPES.CASH,
16         ])
17     ) {
18         return null;
19     }
21     return (
22         <div className="mb-4">{c('Info')
23             .t`Your payment details are protected with TLS encryption and Swiss privacy laws.`}</div>
24     );
27 export default PaymentInfo;