import { TranslatedString } from "@gnu-taler/taler-util";
import { ComponentChildren, Fragment, VNode, h } from "preact";
import { useField } from "./useField.js";
import { useEffect, useState } from "preact/hooks";
import { UIFormProps } from "./FormProvider.js";
//@ts-ignore
const TooltipIcon = (
);
export function LabelWithTooltipMaybeRequired({
label,
required,
tooltip,
}: {
label: TranslatedString;
required?: boolean;
tooltip?: TranslatedString;
}): VNode {
const Label = (
{error}
)} {help && ({help}
)}