src/web/components/blocks/Block.js
function getBlock(type) {
  switch (type) {
    case 'Radio':
    case 'Bool':
      return Radio;

    case 'Checkbox':
      return Checkbox;

    case 'Number':
      return Number;

    case 'Select':
      return Select;

    case 'Image':
      return Image;

    case 'Text':
      return Text;

    case 'Input':
      return Input;

    case 'Textarea':
      return Textarea;

    case 'Data':
      return Data;

    case 'Evaluation':
      return Evaluation;

    case 'FetchOrg':
      return FetchOrg;

    case 'Table':
      return Table;

    case 'Signature':
      return Signature;

    case 'Summary':
      return Summary;

    case 'Sum':
      return Sum;

    case 'Switch':
      return Switch;

    case 'Information':
      return Information;

    default:
      return null;
  }
}
function getBlock(type) {
  switch (type) {
    case 'Radio':
    case 'Bool':
      return Radio;

    case 'Checkbox':
      return Checkbox;

    case 'Number':
      return Number;

    case 'Select':
      return Select;

    case 'Image':
      return Image;

    case 'Text':
      return Text;

    case 'Input':
      return Input;

    case 'Textarea':
      return Textarea;

    case 'Data':
      return Data;

    case 'Evaluation':
      return Evaluation;

    case 'FetchOrg':
      return FetchOrg;

    case 'Table':
      return Table;

    case 'Signature':
      return Signature;

    case 'Summary':
      return Summary;

    case 'Sum':
      return Sum;

    case 'Switch':
      return Switch;

    case 'Information':
      return Information;

    default:
      return null;
  }
}
function getBlock ( type ) { switch ( type ) { case 'Radio' : case 'Bool' : return Radio ; case 'Checkbox' : return Checkbox ; case 'Number' : return Number ; case 'Select' : return Select ; case 'Image' : return Image ; case 'Text' : return Text ; case 'Input' : return Input ; case 'Textarea' : return Textarea ; case 'Data' : return Data ; case 'Evaluation' : return Evaluation ; case 'FetchOrg' : return FetchOrg ; case 'Table' : return Table ; case 'Signature' : return Signature ; case 'Summary' : return Summary ; case 'Sum' : return Sum ; case 'Switch' : return Switch ; case 'Information' : return Information ; default : return null ; } }
Determine which component to use based on the node type

@param string type Type string from schema
Determine which component to use based on the node type