import { Typography } from '@mui/material'; import { equals } from 'ramda'; import { Tooltip as MuiTooltip } from '../../../../components/Tooltip'; import { useTooltipStyles } from '../../../common/useTooltipStyles'; import type { ThresholdTooltip, Tooltip } from '../../models'; import GraphValueTooltipContent from './GraphValueTooltipContent'; interface Props { baseAxis: number; children: JSX.Element; thresholdTooltip: ThresholdTooltip | null; tooltip?: Tooltip; } const GraphValueTooltip = ({ children, tooltip, baseAxis, thresholdTooltip }: Props): JSX.Element => { const { classes, cx } = useTooltipStyles(); if (thresholdTooltip) { return ( {thresholdTooltip?.thresholdLabel}} > {children} ); } return ( ) } > {children} ); }; export default GraphValueTooltip;