text: import { RoutesView } from '../';
  
  export default {
    getView(element, view) {
      if (element.type === 'routes' && view === 'rules') {
        return RoutesView;
      }
  
      // if ((['component', 'action'].includes(element.type) || /^jsx?$/.test(element.ext)) && view === 'diagram') {
      //   return ElementDiagram;
      // }
  
      return null;
    },
  };
  