Bin
2025-12-16 9e0b2ba2c317b1a86212f24cbae3195ad1f3dbfa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { Component, Fragment } from "react";
import { Slider } from "antd";
import { Button, cn, Tooltip } from "@humansignal/ui";
import { observer } from "mobx-react";
 
import styles from "./Styles.module.scss";
 
export default observer(
  class SliderTool extends Component {
    render() {
      return (
        <Fragment>
          <Slider
            value={this.props.value}
            defaultValue={this.props.default || 15}
            max={this.props.max || 50}
            min={1}
            vertical
            tipFormatter={null}
            style={{ height: this.props.height || 100 }}
            onChange={this.props.onChange}
          />
          <Tooltip title={this.props.title} alignment="top-left">
            <Button
              look={this.props.selected ? "filled" : "outlined"}
              className={cn(styles.button, "rounded-full")}
              onClick={this.props.onClick}
            >
              {this.props.icon}
            </Button>
          </Tooltip>
        </Fragment>
      );
    }
  },
);