import { h , VNode } from '@cycle/dom' ; export function Row ( { label , key } , children ) { return h ( 'div.row' , { key } , [ h ( 'h2' , label ) , ... children ] ) ; } export type EditableFieldProps = { label : string ; field : string ; type : string ; value : number | string ; [ key ] : any ; } ; export function EditableField ( { label , type , value , field , ... otherProps } ) { return h ( 'div.field' , [ h ( 'input' , { dataset : { field } , attrs : { type , ... otherProps } , props : { value } } ) , h ( 'p' , label ) , ] ) ; }