Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { ExternalLink } from '@automattic/components';
import { Component } from 'react';
import InlineSupportLink from 'calypso/components/inline-support-link';
class Link extends Component {
static displayName = 'Link';
constructor( props ) {
super( props );
}
render() {
/* eslint-disable react/jsx-no-target-blank */
return (
<div className="config-elements__link guided-tours__external-link">
{ ! this.props.supportArticleId && (
<ExternalLink target="_blank" icon href={ this.props.href }>
{ this.props.children }
</ExternalLink>
) }
{ this.props.supportArticleId && (
<InlineSupportLink
supportPostId={ this.props.supportArticleId }
supportLink={ this.props.href }
>
{ this.props.children }
</InlineSupportLink>
) }
</div>
);
/* eslint-enable react/jsx-no-target-blank */
}
}
export default Link;