import type { Thresholds as ThresholdsModel } from '../common/models'; import { SingleBarProps } from './models'; import { ThresholdLine } from './ThresholdLine'; export const groupMargin = 25; interface ShowTooltipArgs { tooltipData: string; } interface Props extends Pick { barHeight: number; hideTooltip: () => void; isSmall: boolean; showTooltip: (args: ShowTooltipArgs) => void; size: 'small' | 'medium'; thresholds: ThresholdsModel; xScale: (value: number) => number; textWidth?: number; } const Thresholds = ({ xScale, thresholds, showTooltip, hideTooltip, size, barHeight, isSmall, direction, textWidth }: Props): JSX.Element => ( <> {thresholds.warning.map(({ value, label }) => ( ))} {thresholds.critical.map(({ value, label }) => ( ))} ); export default Thresholds;