| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | import {Icon} from 'isl-components/Icon'; |
| 9 | import {Tooltip} from 'isl-components/Tooltip'; |
| 10 | import React from 'react'; |
| 11 | |
| 12 | type EducationInfoTipProps = {children: React.ReactNode}; |
| 13 | |
| 14 | function EducationInfoTipInner(props: EducationInfoTipProps) { |
| 15 | return ( |
| 16 | <Tooltip title={props.children}> |
| 17 | <Icon icon="info" /> |
| 18 | </Tooltip> |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | /** An "i" button with tooltip for education purpose */ |
| 23 | export const EducationInfoTip = React.memo(EducationInfoTipInner); |
| 24 | |