import { useTheme } from '@mui/material/styles'; import { curveBasis } from '@visx/curve'; import { LinePath } from '@visx/shape'; import type { TimeValue } from '../../../../common/timeSeries/models'; import BasicThreshold from './BasicThreshold'; interface Props { curve: 'linear' | 'natural' | 'step'; getX: (timeValue: TimeValue) => number; getY0Variation: (timeValue: TimeValue) => number; getY1Variation: (timeValue: TimeValue) => number; graphHeight: number; lineColorY0: string; lineColorY1: string; timeSeries: Array; } const ThresholdWithVariation = ({ timeSeries, getX, getY0Variation, getY1Variation, graphHeight, lineColorY1, lineColorY0, curve }: Props): JSX.Element => { const theme = useTheme(); const props = { curve: curveBasis, data: timeSeries, stroke: theme.palette.secondary.main, strokeDasharray: 5, strokeOpacity: 0.9, x: getX }; return ( <> ); }; export default ThresholdWithVariation;