import * as React from 'react' ; import Layout from "./layout" ; import StoreProvider from "./tools/StoreProvider" ; export interface IAppProps { router : React . ComponentType ; routes : React . ComponentType < any > ; } const App = ( { router , routes } ) => ( < StoreProvider > < Layout router = { router } routes = { routes } > < /Layout> < /StoreProvider>); export default App ;