1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/common/HelpIcon/HelpIcon.tsx

27 lines
701 B
TypeScript
Raw Normal View History

import { Tooltip } from '@mui/material';
import { Info } from '@mui/icons-material';
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) => {
const { classes: styles } = useStyles();
return (
<Tooltip title={tooltip} arrow>
<span
className={styles.container}
style={style}
tabIndex={0}
aria-label="Help"
>
<Info className={styles.icon} />
</span>
</Tooltip>
);
};