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