import { NgModule } from '@angular/core';
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
import { RouterModule } from '@angular/router';
import { AppThemeModule } from 'app-theme';

@NgModule({
  declarations: [
    <%= classify(name) %>Component
  ],
  imports: [
    AppThemeModule,
    RouterModule.forChild([ 
      {
        path: '',
        component: <%= classify(name) %>Component,
        children: [
          {
            path: '',
            redirectTo: '<%= defaultProtocol %>',
            pathMatch: 'full'
          }<% if (hasProtocol('ble')) { %>
          , {
            path: 'ble',
            loadChildren: './tap-connect-ble-tab/tap-connect-ble-tab.module#TapConnectBleTabModule'
          }<% } %><% if (hasProtocol('nfc')) { %>
          , {
            path: 'nfc',
            loadChildren: './tap-connect-nfc-tab/tap-connect-nfc-tab.module#TapConnectNfcTabModule'
          }<% } %><% if (hasProtocol('socket') || hasProtocol('websocket') || hasProtocol('wifi')) { %>
          , {
            path: 'socket',
            loadChildren: './tap-connect-socket-tab/tap-connect-socket-tab.module#TapConnectSocketTabModule'
          }<% } %><% if (hasProtocol('mqtt')) { %>
          , {
            path: 'mqtt',
            loadChildren: './tap-connect-mqtt-tab/tap-connect-mqtt-tab.module#TapConnectMqttTabModule'
          }<% } %>
        ]
      }
    ])
  ]
})
export class <%= classify(name) %>Module { }
