| 1 | import { InformationCircleIcon } from "@heroicons/react/24/outline"; |
| 2 | import { ToolTip } from "./gui/Tooltip"; |
| 3 | |
| 4 | const DEFAULT_SIZE = "5"; |
| 5 | |
| 6 | const InfoHover = ({ |
| 7 | msg, |
| 8 | size, |
| 9 | id, |
| 10 | }: { |
| 11 | id: string; |
| 12 | msg: string; |
| 13 | size?: string; |
| 14 | }) => { |
| 15 | return ( |
| 16 | <ToolTip content={msg} place="bottom"> |
| 17 | <InformationCircleIcon |
| 18 | className={`h-${size ?? DEFAULT_SIZE} w-${size ?? DEFAULT_SIZE} cursor-help text-gray-500`} |
| 19 | /> |
| 20 | </ToolTip> |
| 21 | ); |
| 22 | }; |
| 23 | |
| 24 | export default InfoHover; |