import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { Fragment, h } from "preact"; import { FlexibleForm } from "./forms/index.js"; import { FormProvider } from "./handlers/FormProvider.js"; import { RenderAllFieldsByUiConfig } from "./handlers/forms.js"; export function NiceForm({ initial, onUpdate, form, }: { initial: Partial; form: FlexibleForm; onUpdate: (d: Partial) => void; }) { const { i18n } = useTranslationContext(); console.log("render"); return (
{form.design.map((section, i) => { return (

{section.title}

{section.description && (

{section.description}

)}
); })}
); }