import { RouterMode } from 'vue-router' ; import { Router } from '@fmfe/genesis-app' ; interface State { routerMode ? : RouterMode ; } export const createRouter = ( state ) => { return new Router ( { mode : state ?. routerMode || 'history' , routes : [ { path : '/about/us' , component : ( ) => import ( './views/about-us.vue' ) . then ( ( m ) => m . default ) } , { path : '/about/help' , component : ( ) => import ( './views/about-help.vue' ) . then ( ( m ) => m . default ) } ] } ) ; } ;