aboutsummaryrefslogtreecommitdiff
path: root/packages/exchange-backoffice-ui/src/handlers/Separator.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-05-16 01:23:44 -0300
committerSebastian <sebasjm@gmail.com>2023-05-16 01:23:44 -0300
commit245ab840baf1926ef2c03a8965fce85012887d92 (patch)
tree1acec43e991100292f82db241eec70d073b6365b /packages/exchange-backoffice-ui/src/handlers/Separator.tsx
parent02fb71c0ff69d293911f4b0945ab964a87402d0c (diff)
one form left
Diffstat (limited to 'packages/exchange-backoffice-ui/src/handlers/Separator.tsx')
-rw-r--r--packages/exchange-backoffice-ui/src/handlers/Separator.tsx26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/exchange-backoffice-ui/src/handlers/Separator.tsx b/packages/exchange-backoffice-ui/src/handlers/Separator.tsx
new file mode 100644
index 000000000..5fa25c3ca
--- /dev/null
+++ b/packages/exchange-backoffice-ui/src/handlers/Separator.tsx
@@ -0,0 +1,26 @@
+import { VNode, h } from "preact";
+import {
+ InputLine,
+ LabelWithTooltipMaybeRequired,
+ UIFormProps,
+} from "./InputLine.js";
+import { TranslatedString } from "@gnu-taler/taler-util";
+
+interface Props {
+ label: TranslatedString;
+ tooltip?: TranslatedString;
+ help?: TranslatedString;
+}
+
+export function Separator({ label, tooltip, help }: Props): VNode {
+ return (
+ <div class="sm:col-span-6">
+ <LabelWithTooltipMaybeRequired label={label} tooltip={tooltip} />
+ {help && (
+ <p class="mt-2 text-sm text-gray-500" id="email-description">
+ {help}
+ </p>
+ )}
+ </div>
+ );
+}