feat: ui for new importer

This commit is contained in:
liyasthomas
2022-01-10 22:02:35 +05:30
parent 05ca0c0966
commit f6fc3782b5
6 changed files with 83 additions and 20 deletions

View File

@@ -22,6 +22,11 @@ type HoppImporterDefintion<T, Y, E> = {
*/
name: string
/**
* Icon for importer button
*/
icon: string
/**
* The importer function, It is a Promise because its supposed to be loaded in lazily (dynamic imports ?)
*/
@@ -38,6 +43,7 @@ type HoppImporterDefintion<T, Y, E> = {
*/
export const defineImporter = <ReturnType, StepType, Errors>(input: {
name: string
icon: string
importer: HoppImporter<ReturnType, StepType, Errors>
steps: StepType
}) => {