import { h } from 'preact'; import { useState, useEffect } from 'preact/hooks'; import type { Widget, Interface } from './lib/types'; interface Props { selected: Widget | null; multiCount: number; iface: Interface; onChange: (updated: Widget) => void; onIfaceChange: (updated: Interface) => void; width?: number; } function Field({ label, children }: { label: string; children: any }) { return (