@openocean.finance/widget
Version:
Openocean Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
12 lines (11 loc) • 610 B
TypeScript
import type { EVMChain, OpenOceanStep, Process } from '@openocean.finance/widget-sdk';
import type { TFunction } from 'i18next';
import type { SubvariantOptions, WidgetSubvariant } from '../types/widget.js';
export declare const useProcessMessage: (step?: OpenOceanStep, process?: Process) => {
title?: string;
message?: string;
};
export declare function getProcessMessage(t: TFunction, getChainById: (chainId: number) => EVMChain | undefined, step: OpenOceanStep, process: Process, subvariant?: WidgetSubvariant, subvariantOptions?: SubvariantOptions): {
title?: string;
message?: string;
};