File size: 683 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
import { translate } from 'i18n-calypso';
import React from 'react';
import InlineSupportLink from 'calypso/components/inline-support-link';
import type { Importer } from 'calypso/blocks/importer/types';

interface Props {
	text?: string;
	importer: Importer;
	supportLinkModal?: boolean;
}
const SupportLink: React.FunctionComponent< Props > = ( props ) => {
	const { text, importer, supportLinkModal } = props;

	return (
		<InlineSupportLink
			showIcon={ false }
			supportContext={ `importers-${ importer }` }
			showSupportModal={ supportLinkModal }
		>
			{ text || translate( 'Need help exporting your content?' ) }
		</InlineSupportLink>
	);
};

export default SupportLink;