import React from 'react' ; import { ControlProps , isStringControl , RankedTester , rankWith } from '@jsonforms/core' ; import { withJsonFormsControlProps } from '@jsonforms/react' ; import { MuiInputText } from '../mui-controls/MuiInputText' ; import { MaterialInputControl } from './MaterialInputControl' ; export const MaterialTextControl = ( props ) => ( < MaterialInputControl { ... props } input = { MuiInputText } / > ) ; export const materialTextControlTester = rankWith ( 1 , isStringControl ) ; export default withJsonFormsControlProps ( MaterialTextControl ) ;