-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathDocPaginator.js
58 lines (47 loc) · 2.41 KB
/
DocPaginator.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import OriginalComp from '@theme-original/DocPaginator';
import React from 'react';
import { useState, useEffect } from 'react';
import DemoPopup from '../component/DemoPopup';
import HelpFulArticle from '../component/HelpFulArticle';
export default function DocPaginator(props) {
const [showFeedback, setShowFeedback] = useState(true);
useEffect(() => {
if (typeof window !== "undefined") {
if (window.location.pathname === '/support/docs/') {
setShowFeedback(false);
}
}
}, [])
return (
<>
{showFeedback && <>
<div className="Doc_bottom_Cta">
<div className="Doc_cta">
<div className='right_sec'>
<h2>Test across 3000+ combinations of browsers, real devices & OS.</h2>
<DemoPopup />
</div>
<img loading="lazy" src="https://www.lambdatest.com/blog/wp-content/uploads/2024/05/DocBottomImg.png" alt="Book Demo" title="Book Demo" width="887" height="477" className='left_sec no-zoom'></img>
</div>
</div>
<h2 className='main_heading_support'>Help and Support</h2>
<HelpFulArticle />
<h2 className='main_heading_support' style={{marginTop:"40px"}}>Related Articles</h2> </>}
<OriginalComp {...props} />
<footer>
<div className="doc_footer">
{/* <a role="button" tabindex="0" href='https://www.lambdatest.com/'><img loading="lazy" src="/support/img/logo.svg" className='footer_light_logo' width="147" height="26" alt="LambdaTest" /> <img loading="lazy" src="/support/img/logo_dark.svg" className='footer_dark_logo' width="300" height="51" alt="LambdaTest" /></a> */}
<p>© {new Date().getFullYear()} LambdaTest Inc. All rights reserved.</p>
<div className='side_footer_link'>
<a role="button" tabIndex="0" href='https://status.lambdatest.io/'>Status</a>
<a role="button" tabIndex="0" href='https://www.lambdatest.com/legal/terms-of-service'>Terms</a>
<a role="button" tabIndex="0" href='https://www.lambdatest.com/legal/privacy'>Privacy</a>
<a role="button" tabIndex="0" href='https://www.lambdatest.com/trust/security'>Security</a>
<a role="button" tabIndex="0" href='https://www.lambdatest.com/pricing'>Pricing</a>
<a role="button" tabIndex="0" href='https://www.lambdatest.com/blog/'>Blog</a>
</div>
</div>
</footer>
</>
);
}