import { VNode } from "preact" ; export function getNodeProps ( vnode ) { const props = { ... ( vnode . nodeName as any ) . defaultProps , ... vnode . attributes , } ; if ( vnode . children !== undefined ) { props . children = vnode . children ; } return props ; }