import m , { Vnode , Children } from 'mithril' ; import { MithrilTsxComponent } from 'mithril-tsx-component' ; export function statelessViewComponent < T > ( c ) { return class Page extends MithrilTsxComponent < T > { view ( n ) { return c ( n ) ; } } ; }