portainer/app/react/components/PageHeader/ContextHelp/ContextHelp.tsx

28 lines
571 B
TypeScript

import { HelpCircle } from 'react-feather';
import clsx from 'clsx';
import { getDocURL } from '@@/PageHeader/ContextHelp/docURLs';
import './ContextHelp.css';
export function ContextHelp() {
function onHelpClick() {
const docURL = getDocURL();
window.open(docURL, '_blank');
}
return (
<div
className={clsx(
'menu-icon',
'icon-badge text-lg !p-2 mr-1',
'text-gray-8',
'th-dark:text-gray-warm-7'
)}
title="Help"
>
<HelpCircle className="feather" onClick={onHelpClick} />
</div>
);
}