import { TextField } from "@mui/material"; import { ChangeEvent, FC, Fragment } from "react"; import { applyFilter } from "../../lib"; import { IProps, label } from "../../model"; export const NumberBetween: FC> = ({ setValue, value, }) => { function onChange1(event: ChangeEvent) { const newValue = { ...value, 1: event.target.value }; setValue(newValue); applyFilter(newValue); } function onChange2(event: ChangeEvent) { const newValue = { ...value, 2: event.target.value }; setValue(newValue); applyFilter(newValue); } return ( ); };