2019-10-03 17:40:54 -04:00
|
|
|
// @flow
|
|
|
|
import * as ICONS from 'constants/icons';
|
|
|
|
import React from 'react';
|
|
|
|
import Button from 'component/button';
|
|
|
|
|
|
|
|
type Props = {
|
2020-02-21 12:23:04 -05:00
|
|
|
href?: string,
|
|
|
|
navigate?: string,
|
2020-07-24 14:00:17 -04:00
|
|
|
icon?: string,
|
|
|
|
description?: string,
|
2019-10-03 17:40:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
export default function HelpLink(props: Props) {
|
2020-07-24 14:00:17 -04:00
|
|
|
const { href, navigate, icon, description } = props;
|
|
|
|
return (
|
|
|
|
<Button
|
|
|
|
className="icon--help"
|
|
|
|
icon={icon || ICONS.HELP}
|
|
|
|
description={description || __('Help')}
|
|
|
|
href={href}
|
|
|
|
navigate={navigate}
|
|
|
|
/>
|
|
|
|
);
|
2019-10-03 17:40:54 -04:00
|
|
|
}
|