feat: ui for new importer
This commit is contained in:
@@ -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>>{
|
||||
|
||||
Reference in New Issue
Block a user