feat: ui for new importer

This commit is contained in:
liyasthomas
2022-01-14 20:40:54 +05:30
parent 67934fd19a
commit e323b4355e
12 changed files with 116 additions and 50 deletions

View File

@@ -27,6 +27,11 @@ type HoppImporterDefintion<T, Y, E> = {
*/
icon: string
/**
* Identifier for the importer
*/
applicableTo?: Array<"team-collections" | "my-collections">
/**
* The importer function, It is a Promise because its supposed to be loaded in lazily (dynamic imports ?)
*/
@@ -45,6 +50,7 @@ export const defineImporter = <ReturnType, StepType, Errors>(input: {
name: string
icon: string
importer: HoppImporter<ReturnType, StepType, Errors>
applicableTo?: Array<"team-collections" | "my-collections">
steps: StepType
}) => {
return <HoppImporterDefintion<ReturnType, StepType, Errors>>{