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