function renderBoolean(fieldModel) {
    const {isRequired, value, initialValue} = fieldModel,
        useSwitch = isRequired && value != null && initialValue != null;

    return useSwitch ?
        switchInput() :
        select({
            options: [true, false],
            enableClear: !isRequired,
            enableCreate: false
        });
}
// Otherwise, use a clearly nullable select.
Otherwise, use a clearly nullable select.
Otherwise use a clearly nullable select .
function renderBoolean(fieldModel) {
    const {isRequired, value, initialValue} = fieldModel,
        useSwitch = isRequired && value != null && initialValue != null;
    return useSwitch ?
        switchInput() :
        select({
            options: [true, false],
            enableClear: !isRequired,
            enableCreate: false
        });
}
function renderBoolean ( fieldModel ) { const { isRequired , value , initialValue } = fieldModel , useSwitch = isRequired && value != null && initialValue != null ; return useSwitch ? switchInput ( ) : select ( { options : [ true , false ] , enableClear : ! isRequired , enableCreate : false } ) ; }
Otherwise, use a clearly nullable select.
Otherwise use a clearly nullable select .