653 B24 lines
Blame
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
8import {Icon} from 'isl-components/Icon';
9import {Tooltip} from 'isl-components/Tooltip';
10import React from 'react';
11
12type EducationInfoTipProps = {children: React.ReactNode};
13
14function 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 */
23export const EducationInfoTip = React.memo(EducationInfoTipInner);
24