import React from 'react'; import PropTypes from 'prop-types'; import Box from '../../ui/box'; import Typography from '../../ui/typography'; import Tooltip from '../../ui/tooltip'; import { TextColor, DISPLAY, TypographyVariant, } from '../../../helpers/constants/design-system'; import { Icon, ICON_NAMES, ICON_SIZES, } from '../../component-library/icon/deprecated'; export const CustomSpendingCapTooltip = ({ tooltipContentText, tooltipIcon, }) => ( {tooltipContentText} } > {tooltipIcon ? ( ) : ( tooltipIcon !== '' && )} ); CustomSpendingCapTooltip.propTypes = { tooltipContentText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]), tooltipIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), };