mirror of
https://github.com/SomboChea/ui
synced 2024-11-04 21:54:30 +07:00
20 lines
514 B
TypeScript
20 lines
514 B
TypeScript
import React from 'react';
|
|
|
|
import Tooltip from '../../muiComponents/Tooltip';
|
|
|
|
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;
|