MCPcopy Create free account
hub / github.com/github/docs / Support

Function Support

components/page-footer/Support.tsx:6–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { useMainContext } from 'components/context/MainContext'
5
6export const Support = () => {
7 const { t } = useTranslation('support')
8 const { communityRedirect } = useMainContext()
9
10 return (
11 <div>
12 <h2 className="mb-3 f4">{t`still_need_help`}</h2>
13 <div className="mb-2">
14 <a
15 id="ask-community"
16 href={communityRedirect.href || 'https://github.com/orgs/community/discussions'}
17 className="Link—secondary text-bold"
18 >
19 <PeopleIcon size="small" className="octicon mr-1" />
20 {Object.keys(communityRedirect).length === 0 ? t`ask_community` : communityRedirect.name}
21 </a>
22 </div>
23 <div>
24 <a
25 id="contact-us"
26 href="https://support.github.com/contact"
27 className="Link—secondary text-bold"
28 >
29 <CommentDiscussionIcon size="small" className="octicon mr-1" />
30 {t`contact_support`}
31 </a>
32 </div>
33 </div>
34 )
35}

Callers

nothing calls this directly

Calls 2

useTranslationFunction · 0.90
useMainContextFunction · 0.90

Tested by

no test coverage detected