import React from 'react'; import PropTypes from 'prop-types'; import Box from '../../ui/box'; import Tooltip from '../../ui/tooltip'; import { TextColor, TextVariant, Display, } from '../../../helpers/constants/design-system'; import { Icon, IconName, IconSize } from '../../component-library'; import { Text } from '../../component-library/text/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]), };