mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
28 lines
585 B
JavaScript
28 lines
585 B
JavaScript
// @flow
|
|
import * as React from 'react';
|
|
import autobind from 'autobind-decorator';
|
|
import { getDocumentationUrl } from '../../common/constants';
|
|
import Link from './base/link';
|
|
|
|
type Props = {
|
|
slug: string,
|
|
};
|
|
|
|
@autobind
|
|
class HelpLink extends React.PureComponent<Props> {
|
|
render() {
|
|
const { slug } = this.props;
|
|
return (
|
|
<Link
|
|
noTheme
|
|
className="help-link theme--dialog"
|
|
href={getDocumentationUrl(slug)}
|
|
title="Read documentation">
|
|
<i className="fa fa-question-circle" />
|
|
</Link>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default HelpLink;
|