addons/isl/src/Education.tsxblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318import {Icon} from 'isl-components/Icon';
b69ab319import {Tooltip} from 'isl-components/Tooltip';
b69ab3110import React from 'react';
b69ab3111
b69ab3112type EducationInfoTipProps = {children: React.ReactNode};
b69ab3113
b69ab3114function EducationInfoTipInner(props: EducationInfoTipProps) {
b69ab3115 return (
b69ab3116 <Tooltip title={props.children}>
b69ab3117 <Icon icon="info" />
b69ab3118 </Tooltip>
b69ab3119 );
b69ab3120}
b69ab3121
b69ab3122/** An "i" button with tooltip for education purpose */
b69ab3123export const EducationInfoTip = React.memo(EducationInfoTipInner);