import cx from 'classnames'; import { getLeft } from './common'; export interface ISliderDotsProps { marks: Record; min: number; max: number; activeLeft: number; activeRight: number; potentialValues: number[]; disabled: boolean; } function isActive(value: number, left: number, right: number) { return value >= left && value <= right; } function Dots({ min, max, activeLeft, activeRight, potentialValues, disabled, }: ISliderDotsProps) { return ( <> {potentialValues.map(value => (
))} ); } export default Dots;