-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathcustomer-support.js
142 lines (135 loc) · 5.48 KB
/
customer-support.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import { useTranslation, Trans } from 'next-i18next'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
import Mailto from 'react-protected-mailto'
import { useState, useEffect } from 'react'
import axios from 'axios'
import SocialIcons from '../components/Layout/SocialIcons'
import SEO from '../components/SEO'
import { nativeCurrency, explorerName, xahauNetwork } from '../utils'
import { getIsSsrMobile } from '../utils/mobile'
import { amountFormat } from '../utils/format'
export async function getServerSideProps(context) {
const { locale } = context
return {
props: {
isSsrMobile: getIsSsrMobile(context),
...(await serverSideTranslations(locale, ['common', 'customer-support']))
}
}
}
export default function Contact() {
const { t } = useTranslation()
const [networkInfo, setNetworkInfo] = useState({})
useEffect(() => {
async function fetchData() {
const networkInfoData = await axios('v2/server')
setNetworkInfo(networkInfoData?.data)
}
fetchData()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
return (
<>
<SEO title={t('header', { ns: 'customer-support' })} />
<div className="content-text">
<h1>{t('header', { ns: 'customer-support' })}</h1>
<p>{t('read-carefully', { ns: 'customer-support' }).toUpperCase()}</p>
<p>
<Trans ns="customer-support" i18nKey="is-explorer">
Our web-site operates as an explorer of <strong>PUBLICLY</strong> available information on the{' '}
{{ explorerName }} Ledger.
</Trans>
<br />
<Trans ns="customer-support" i18nKey="no-wallet" />
<br />
<Trans ns="customer-support" i18nKey="primary-function">
Our <strong>primary function</strong> is to provide information about transactions and accounts on the{' '}
{{ explorerName }} in a user-friendly manner. The information we provide is not proprietary or secret; it is
available to anyone with access to the blockchain.
</Trans>
</p>
<h3>{t('what-we-cannot-do', { ns: 'customer-support' })}</h3>
<ul>
<li>
<Trans ns="customer-support" i18nKey="freeze-accounts" values={{ explorerName }} />
</li>
<li>
<Trans ns="customer-support" i18nKey="reverse-transactions" />
</li>
<li>
<Trans ns="customer-support" i18nKey="modify-tags" />
</li>
<li>
<Trans ns="customer-support" i18nKey="conduct-investigations" />
</li>
<li>
<Trans ns="customer-support" i18nKey="recover-funds" values={{ nativeCurrency }} />
</li>
</ul>
<h3>{t('what-to-do', { ns: 'customer-support' })}</h3>
<ol>
<li>
<Trans ns="customer-support" i18nKey="stolen-funds">
<strong>Stolen Funds or Fraud/Scam Victim</strong>: If your funds were stolen or you were scammed, you can
report the incident <a href="https://xrplorer.com/forensics/help">here</a>.
</Trans>
</li>
<li>
<Trans ns="customer-support" i18nKey="failed-transaction" />
</li>
<li>
<Trans ns="customer-support" i18nKey="successful-transaction" />
</li>
<li>
<Trans ns="customer-support" i18nKey="destination-tag" />
</li>
<li>
<Trans ns="customer-support" i18nKey="missing-base-reserve">
<strong>Missing {{ baseReserve: amountFormat(networkInfo?.reserveBase) }} in Your Wallet</strong>: The
missing {{ baseReserve: amountFormat(networkInfo?.reserveBase) }} is due to the {{ nativeCurrency }}{' '}
Ledger's base reserve requirement. Please read more about the{' '}
<a
href={
xahauNetwork
? 'https://help.xumm.app/app/xahau/understanding-reserves-on-xahau'
: 'https://xrpl.org/reserves.html'
}
>
base reserve
</a>
.
</Trans>
</li>
<li>
<Trans ns="customer-support" i18nKey="sending-from-paper-wallet" values={{ nativeCurrency }} />
</li>
</ol>
<p>
<Trans ns="customer-support" i18nKey="note" />
</p>
<p>
<b>{t('inquiries', { ns: 'customer-support' })}</b>
<br />
<Trans ns="customer-support" i18nKey="for-partnership">
For any partnership or marketing proposals:{' '}
<Mailto email="partner@bithomp.com" headers={{ subject: 'Bithomp partner' }} />
</Trans>
<br />
<Trans ns="customer-support" i18nKey="for-questions">
For any questions about the username registration, transaction explorer or Bithomp Pro:{' '}
<Mailto email="inquiries@bithomp.com" headers={{ subject: 'Bithomp usage question' }} />
</Trans>
</p>
<h3>{t('submit-info', { ns: 'customer-support' })}</h3>
<p>
<Trans ns="customer-support" i18nKey="submit-info-here">
If you have a public service and you want your addresses to be recognised, submit your information{' '}
<a href="https://bithomp.com/submit-account-information">here</a>.
</Trans>
</p>
<h3>{t('follow-us', { ns: 'customer-support' })}</h3>
<SocialIcons />
</div>
</>
)
}