Download wp-calypso/client/blocks/importer/components/support-link/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/importer/components/support-link/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/importer/components/support-link/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/importer/components/support-link/index.tsx
683 Bytes
| 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; | |