1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/components/page-footer/SupportSection.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

31 lines
1.1 KiB
TypeScript

import { Survey } from 'components/page-footer/Survey'
import { Contribution } from 'components/page-footer/Contribution'
import { Support } from 'components/page-footer/Support'
import { useMainContext } from 'components/context/MainContext'
import { useVersion } from 'components/hooks/useVersion'
export const SupportSection = () => {
const { currentVersion } = useVersion()
const { enterpriseServerReleases } = useMainContext()
const isDeprecated =
enterpriseServerReleases.isOldestReleaseDeprecated &&
currentVersion.includes(enterpriseServerReleases.oldestSupported)
return (
<section className="mt-lg-9 py-7 px-3 px-md-6 no-print color-bg-tertiary">
<div className="container-xl gutter-lg-spacious clearfix">
<div className="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left">
{!isDeprecated && <Survey />}
</div>
<div className="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left">
{!isDeprecated && <Contribution />}
</div>
<div className="col-12 col-lg-12 col-xl-4 float-left">
<Support />
</div>
</div>
</section>
)
}