diff options
author | Sebastian <sebasjm@gmail.com> | 2023-05-19 13:26:47 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-05-19 13:26:47 -0300 |
commit | 0544b8358af68df87dbc472221d8c0842c2b2db0 (patch) | |
tree | 14c7a931cf3bf79a1e9e39cc6b177dd0a4374ba2 /packages/exchange-backoffice-ui/src/handlers/forms.ts | |
parent | 35cc13e229ddc4953a1e68b6b7ea18c54eb9a70b (diff) |
accounts and notifications
Diffstat (limited to 'packages/exchange-backoffice-ui/src/handlers/forms.ts')
-rw-r--r-- | packages/exchange-backoffice-ui/src/handlers/forms.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/exchange-backoffice-ui/src/handlers/forms.ts b/packages/exchange-backoffice-ui/src/handlers/forms.ts index 1d6a7daa4..a97b8561d 100644 --- a/packages/exchange-backoffice-ui/src/handlers/forms.ts +++ b/packages/exchange-backoffice-ui/src/handlers/forms.ts @@ -11,6 +11,8 @@ import { InputFile } from "./InputFile.js"; import { Caption } from "./Caption.js"; import { Group } from "./Group.js"; import { InputSelectOne } from "./InputSelectOne.js"; +import { FormProvider } from "./FormProvider.js"; +import { InputLine } from "./InputLine.js"; export type DoubleColumnForm = DoubleColumnFormSection[]; @@ -94,3 +96,14 @@ export function RenderAllFieldsByUiConfig({ }), ); } + +type FormSet<T> = { + Provider: typeof FormProvider<T>; + InputLine: typeof InputLine<T>; +}; +export function createNewForm<T>(): FormSet<T> { + return { + Provider: FormProvider, + InputLine: InputLine, + }; +} |