2019-10-08 12:47:11 +07:00
|
|
|
import React from 'react';
|
2019-10-12 13:45:39 +07:00
|
|
|
|
|
|
|
import Tooltip from '../../muiComponents/Tooltip';
|
2019-10-08 12:47:11 +07:00
|
|
|
|
|
|
|
import HeaderToolTipIcon, { TooltipIconType } from './HeaderToolTipIcon';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
title: string;
|
|
|
|
tooltipIconType: TooltipIconType;
|
|
|
|
onClick?: () => void;
|
|
|
|
}
|
|
|
|
|
|
|
|
const HeaderToolTip: React.FC<Props> = ({ tooltipIconType, title, onClick }) => (
|
|
|
|
<Tooltip disableFocusListener={true} title={title}>
|
|
|
|
<HeaderToolTipIcon onClick={onClick} tooltipIconType={tooltipIconType} />
|
|
|
|
</Tooltip>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default HeaderToolTip;
|