File size: 1,043 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import { Button } from '@automattic/components';
import { localizeUrl } from '@automattic/i18n-utils';
import { useTranslate } from 'i18n-calypso';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
import GetHelpNav from '../get-help-nav';
import IntroVideo from '../intro-video';
import QuickLinksNav from '../quick-links-nav';
import './style.scss';

export default function OverviewSidebar() {
	const dispatch = useDispatch();
	const translate = useTranslate();
	return (
		<>
			<section>
				<IntroVideo />
			</section>

			<section>
				<QuickLinksNav />
			</section>

			<section>
				<GetHelpNav />
				<Button
					className="contact-support-button"
					href={ localizeUrl( 'https://jetpack.com/contact-support/' ) }
					onClick={ () =>
						dispatch(
							recordTracksEvent( 'calypso_jetpack_manage_overview_contact_support_button_click' )
						)
					}
					target="_blank"
				>
					{ translate( 'Contact support' ) }
				</Button>
			</section>
		</>
	);
}