// @flow import React from "react"; import createComponent from "./base"; import { isDisabled, getValue } from "./utils"; import type { UISlider } from "config/flowtypes"; import SliderComponent from "@material-ui/core/Slider"; const changeSliderValue = (item: UISlider, changeState) => (_e, v) => changeState(item, v.toString()); const BaseComponent = ({Icon, Label}, item, state, changeState) => ( ); export default createComponent({ id: "slider", name: "Slider", desc: ` The Slider can be used to choose a number between two a min and a max value. `, parameters: { text: "A descriptive label for the slider", topic: "The topic id" }, baseComponent: BaseComponent });