2022-05-02 15:52:41 +02:00
|
|
|
import { Tooltip } from '@mui/material';
|
|
|
|
import { Info } from '@mui/icons-material';
|
2022-04-25 09:24:09 +02:00
|
|
|
import { useStyles } from 'component/common/HelpIcon/HelpIcon.styles';
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
interface IHelpIconProps {
|
|
|
|
tooltip: string;
|
|
|
|
style?: React.CSSProperties;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const HelpIcon = ({ tooltip, style }: IHelpIconProps) => {
|
2022-05-02 15:52:41 +02:00
|
|
|
const { classes: styles } = useStyles();
|
2022-04-25 09:24:09 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Tooltip title={tooltip} arrow>
|
|
|
|
<span
|
|
|
|
className={styles.container}
|
|
|
|
style={style}
|
|
|
|
tabIndex={0}
|
|
|
|
aria-label="Help"
|
|
|
|
>
|
|
|
|
<Info className={styles.icon} />
|
|
|
|
</span>
|
|
|
|
</Tooltip>
|
|
|
|
);
|
|
|
|
};
|