import React from 'react' ; import { ControlProps , isNumberControl , RankedTester , rankWith } from '@jsonforms/core' ; import { MuiInputNumber } from '../mui-controls/MuiInputNumber' ; import { MaterialInputControl } from './MaterialInputControl' ; import { withJsonFormsControlProps } from '@jsonforms/react' ; export const MaterialNumberControl = ( props ) => ( < MaterialInputControl { ... props } input = { MuiInputNumber } / > ) ; export const materialNumberControlTester = rankWith ( 2 , isNumberControl ) ; export default withJsonFormsControlProps ( MaterialNumberControl ) ;