import { ComponentType } from 'react' import { MultisigAccount } from '../account' import { LoadingDataWithError } from '../misc' import { AddressInputProps } from './AddressInput' import { StatefulEntityDisplayProps } from './EntityDisplay' import { ModalProps } from './Modal' export type ImportMultisigModalProps = Pick< ModalProps, 'visible' | 'onClose' > & { /** * Multisig account loading from the entered address. */ loadingMultisig: LoadingDataWithError /** * Import callback. */ onImport: (details: MultisigAccount) => void /** * The stateful address input component. */ AddressInput: ComponentType> /** * The stateful entity display component. */ EntityDisplay: ComponentType } export type StatefulImportMultisigModalProps = Pick< ImportMultisigModalProps, 'visible' | 'onClose' | 'onImport' > export type ImportMultisigForm = { /** * Multisig chain ID. */ chainId: string /** * Multisig address. */ address: string }