1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/components/page-footer/Support.tsx
Mike Surowiec a511c95c7f SCSS and Component cleanup (pt 1) (#20572)
* turn article.scss into a module + componentized

* Update Survey to use only component styles, add cancel button

* Update GenericError + 404 page to use only standard classes

* update LearningTrack to not use markdown-body

* remove / consolidate stylesheets

* cleanup Graphiql explorer page and scss

* Componentize Breadcrumb styles

* Componentize DeprecationBanner styles

* scope h2 a link style to markdown-body

* cleanup nav, organize page-header and page-footer components

* remove unused scroll-button.scss

* organize LanguagePicker and ProductPicker

* add declarations file

* remove featured-links.scss, update tests

* update list utility and toc test

* fix bad merge resolution

* update breadcrumbs test
2021-07-29 17:27:20 +00:00

32 lines
952 B
TypeScript

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>
)
}