()
| 4 | import { useMainContext } from 'components/context/MainContext' |
| 5 | |
| 6 | export 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 | } |
nothing calls this directly
no test coverage detected