import { VNode, h } from "preact"; import { InputLine, UIFormProps } from "./InputLine.js"; export function InputInteger(props: UIFormProps): VNode { return ( { return !v ? 0 : Number.parseInt(v, 10); }, toStringUI: (v?: number) => { return v === undefined ? "" : String(v); }, }} {...props} /> ); }