forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSupport.tsx
31 lines (28 loc) · 952 Bytes
/
Support.tsx
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
import { PeopleIcon, CommentDiscussionIcon } from '@primer/octicons-react'
import { useTranslation } from 'components/hooks/useTranslation'
import { useVersion } from 'components/hooks/useVersion'
export const Support = () => {
const { isEnterprise } = useVersion()
const { t } = useTranslation('support')
return (
<div>
<h3 className="mb-2 f4">{t`still_need_help`}</h3>
<a id="ask-community" href="https://github.community" className="btn btn-outline mr-4 mt-2">
<PeopleIcon size="small" className="octicon mr-1" />
{t`ask_community`}
</a>
<a
id="contact-us"
href={
isEnterprise
? 'https://enterprise.github.com/support'
: 'https://support.github.com/contact'
}
className="btn btn-outline mt-2"
>
<CommentDiscussionIcon size="small" className="octicon mr-1" />
{t`contact_support`}
</a>
</div>
)
}