import { RouteDefinitions } from 'routes' ; import { Stream } from 'xstream' ; const getHeaderLayout = async ( ) => { const { HeaderLayout } = await import ( 'layouts/HeaderLayout' ) ; return HeaderLayout ; } ; const xs = Stream ; export const Commits = { '/' : { getComponent : async ( ) => { const { List } = await import ( './routes/List' ) ; return List ; } , getLayout : getHeaderLayout } , '/:sha' : sha => ( { getComponent : async ( ) => { const { Details } = await import ( './routes/Details' ) ; return Details ; } , sources : { sha$ : xs . of ( sha ) } , getLayout : getHeaderLayout } ) } ;