Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

SupportSection.tsx 1.1 KB

You have to be logged in to leave a comment. Sign In
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
  1. import { Survey } from 'components/Survey'
  2. import { Contribution } from 'components/Contribution'
  3. import { Support } from 'components/Support'
  4. import { useMainContext } from './context/MainContext'
  5. import { useVersion } from 'components/hooks/useVersion'
  6. export const SupportSection = () => {
  7. const { currentVersion } = useVersion()
  8. const { enterpriseServerReleases } = useMainContext()
  9. const isDeprecated =
  10. enterpriseServerReleases.isOldestReleaseDeprecated &&
  11. currentVersion.includes(enterpriseServerReleases.oldestSupported)
  12. return (
  13. <section className="mt-lg-9 py-7 px-3 px-md-6 no-print color-bg-tertiary">
  14. <div className="container-xl gutter-lg-spacious clearfix">
  15. <div className="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left">
  16. {!isDeprecated && <Survey />}
  17. </div>
  18. <div className="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left">
  19. {!isDeprecated && <Contribution />}
  20. </div>
  21. <div className="col-12 col-lg-12 col-xl-4 float-left">
  22. <Support />
  23. </div>
  24. </div>
  25. </section>
  26. )
  27. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...