text: import App from 'app/components/App';
  import PostsIndex from '@pages/PostsIndex';
  import resolveRoute from './ResolveRoute';
  
  export default {
      path: '/',
      component: App,
      getChildRoutes(nextState, cb) {
          const route = resolveRoute(nextState.location.pathname);
          if (route.page === 'Welcome') {
              cb(null, [
                  {
                      path: 'welcome',
                      component: process.env.BROWSER
                          ? require('@pages/WelcomeLoader').default
                          : require('@pages/Welcome').default,
                  },
              ]);
          } else if (route.page === 'Start') {
              cb(null, [require('@pages/Start')]);
          } else if (route.page === 'Exchanges') {
              cb(null, [require('@pages/Exchanges')]);
          } else if (route.page === 'Services') {
              cb(null, [require('@pages/Services')]);
          } else if (route.page === 'Faq') {
              cb(null, [
                  {
                      path: 'faq',
                      component: process.env.BROWSER
                          ? require('@pages/FaqLoader').default
                          : require('@pages/Faq').default,
                  },
              ]);
          } else if (route.page === 'Login') {
              cb(null, [require('@pages/Login')]);
          } else if (
              route.page === 'XSSTest' &&
              process.env.NODE_ENV === 'development'
          ) {
              cb(null, [require('@pages/XSS')]);
          } else if (route.page === 'Tags') {
              cb(null, [require('@pages/TagsIndex')]);
          } else if (route.page === 'ChangePassword') {
              cb(null, [require('@pages/ChangePasswordPage')]);
          } else if (route.page === 'Witnesses') {
              cb(null, [require('@pages/WitnessesLoader')]);
          } else if (route.page === 'Workers') {
              cb(null, [require('@pages/WorkersLoader')]);
          } else if (route.page === 'MinusedAccounts') {
              cb(null, [require('@pages/MinusedAccounts')]);
          } else if (route.page === 'Nodes') {
              cb(null, [require('@pages/NodesLoader')]);
          } else if (route.page === 'LeavePage') {
              cb(null, [require('@pages/LeavePage')]);
          } else if (route.page === 'Search') {
              cb(null, [require('@pages/Search')]);
          } else if (route.page === 'Messages') {
              cb(null, [require('@pages/Messages')]);
          } else if (route.page === 'SubmitPost') {
              if (process.env.BROWSER) cb(null, [require('@pages/SubmitPost')]);
              else cb(null, [require('@pages/SubmitPostServerRender')]);
          } else if (route.page === 'UserProfile') {
              cb(null, [require('@pages/UserProfile')]);
          } else if (route.page === 'Market') {
              cb(null, [require('@pages/MarketLoader')]);
          } else if (route.page === 'Post') {
              cb(null, [require('@pages/PostPage')]);
          } else if (route.page === 'PostNoCategory') {
              cb(null, [require('@pages/PostPageNoCategory')]);
          } else if (route.page === 'PostsIndex') {
              cb(null, [PostsIndex]);
          } else {
              cb(process.env.BROWSER ? null : Error(404), [
                  require('@pages/NotFound'),
              ]);
          }
      },
      indexRoute: {
          component: PostsIndex.component,
      },
  };
  