import React from 'react' ; import { and , CellProps , isBooleanControl , optionIs , RankedTester , rankWith , WithClassname } from '@jsonforms/core' ; import { withJsonFormsCellProps } from '@jsonforms/react' ; import { MuiToggle } from '../mui-controls/MuiToggle' ; export const MaterialBooleanToggleCell = ( props ) => { return < MuiToggle { ... props } / > ; } ; export const materialBooleanToggleCellTester = rankWith ( 3 , and ( isBooleanControl , optionIs ( 'toggle' , true ) ) ) ; ; export default withJsonFormsCellProps ( MaterialBooleanToggleCell ) ;