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